Events Made Easy › Forums › Generic › Using templates at an Event description
- This topic has 16 replies, 2 voices, and was last updated 9 years, 10 months ago by Franky.
-
AuthorPosts
-
Tue 13 Jan 2015 at 09:03 #53306AnonymousInactive
Hi Franky,
maybe the usage is not intended here but I do use a template at the Event description or any other WP site like [eme_events template_id=2] which will list the details of that template for all events that exists instead of just the one that is currently displayed.
Am I doing something wrong?
Cheers
JKTue 13 Jan 2015 at 10:28 #53307FrankyKeymasterThe event description is per event, but using another shortcode there uses that shortcode’s functions. Since [eme_events] displays a list of events, that is what will happen.
Just select the template you want in the “single event format” setting for that event.Tue 13 Jan 2015 at 13:08 #53308AnonymousInactivesmall cause large effective, didn’t realized that [eme_events template_id=2] was for the series of events and that there is another shortcode with a huge difference as it is not mentioned here: http://www.e-dynamics.be/wordpress/?cat=51 I was missing to have a look at http://www.e-dynamics.be/wordpress/?cat=18 and http://www.e-dynamics.be/wordpress/?cat=37
Tue 13 Jan 2015 at 13:21 #53309AnonymousInactiveWith this I just realized how flexible and powerful EME really is!
Many thanks for pushing me into the right direction Franky!Tue 13 Jan 2015 at 13:30 #53310FrankyKeymaster🙂
Tue 13 Jan 2015 at 14:49 #53311AnonymousInactiveI’ve placed [eme_locations_map] at the single event template, that was giving a list of all locations, up to now I didn’t realized that because I just had ONE location setup. So I thought Ok you learned from Franky the “s” matters, but now I don’t get a location map displayed 🙁
[eme_location_map] seems not to work and also trying to place #_MAP did not do the trick!?
Tue 13 Jan 2015 at 16:25 #53312FrankyKeymaster#_MAP should work just fine in the single event template
Tue 13 Jan 2015 at 19:26 #53314AnonymousInactiveWell when I put #_MAP in the description directly it gets “printed” #_MAP like each other string. When putting it into a template and place the template into the event description the “#_MAP” is not printed but also no map appears.
Tue 13 Jan 2015 at 19:28 #53315AnonymousInactivesame with #_DIRECTIONS!
Tue 13 Jan 2015 at 19:39 #53316AnonymousInactiveStrange – I also added #_LOCATIONIMAGE at a template that is part of a location description template and also gives no output the source code of the page at the place where the shortcode is or the image should be is empty.
Tue 13 Jan 2015 at 21:22 #53317FrankyKeymasterFirst try to put #_MAP directly in the single event format, leave out templates to begin with.
Tue 13 Jan 2015 at 23:12 #53318AnonymousInactiveAt the standard format for the event it works.
Tue 13 Jan 2015 at 23:55 #53319FrankyKeymasterThe event description is (or can be) part of the way you show the event. The way you show the event is defined in the “single event format” setting, not in the description. The single event format defines where you want to show the map, description, rsvp form etc …
The description can contain (if configured so in the EME settings) other shortcodes (not placeholders, so no #_MAP there: it will not be replaced)
Th default single event format is:
<p>#_STARTDATE - #_STARTTIME</p><p>#_TOWN</p><p>#_NOTES</p><p>#_ADDBOOKINGFORM</p><p>#_MAP</p>
(#_NOTES shows whatever you entered in the event description).
Per event you can change the format to your liking, or use an own-defined template (in the single event format setting).Wed 14 Jan 2015 at 06:23 #53321AnonymousInactiveAnd again click … I was using templates in the event description to have the same format within the description for all events (at least those events who belong to a specific series of events). My event descriptions should be formatted the same as all other events out of the series (well at least partly – like the status of the event, if it has reached the minimum participants and if it will take place etc.) and the template for that is looking like this:
<h3>Einzelheiten zur Veranstaltung</h3> <p>Preis pro Person in #_CURRENCY: #_PRICE</p> <p>Mindest- / Maximalteilnehmerzahl: #_ATT{MINSEAT} / #_TOTALSEATS</br> Bestätigte Teilnehmer: #_APPROVEDSPACES</br> [eme_if tag='#ESC_APPROVEDSPACES' lt='#ESC_ATT{MINSEAT}'][eme_if2 tag='#_RESERVEDSPACES' lt='#ESC_ATT{MINSEAT}']<span style="color:#F29849;font-weight:bold;">Achtung! Die Mindestteilnehmerzahl für diese Veranstaltung wurde noch nicht erreicht - die Durchführung wird noch nicht garantiert!</span>[/eme_if2][/eme_if] [eme_if tag='#_RESERVEDSPACES' ge='#ESC_ATT{MINSEAT}']<span style="color:#94A653;font-weight:bold;">Die Mindestanzahl an angefragten/bestätigten Teilnehmern wurde erreicht - diese Veranstaltung findet [eme_if2 tag='#ESC_APPROVEDSPACES' lt='#ESC_ATT{MINSEAT}']<span style="color:#F29849;font-weight:bold;">voraussichtlich</span>[/eme_if2] statt!</span>[/eme_if]</p> <p>Anzahl zurzeit freier Plätze: #_AVAILABLESEATS</br> Es liegen derzeit #_PENDINGSPACES unbestätigte Platzanfragen zu dieser Veranstaltung vor.</br> [eme_if tag='#_RESERVEDSPACES' ge='#_TOTALSEATS']Die Anzahl angefragter Teilnehmer (derzeit #_RESERVEDSPACES inkl. bestätigter Plätze) übersteigt die Maximalteilnehmerzahl (#_TOTALSEATS) und es wurde eine Warteliste angelegt.[/eme_if]</p> <p>Anmeldeschluss: #_RSVPEND</p> <p>Veranstaltung in den Kalender eintragen: #_ICALLINK</p>
and all the placeholders worked pretty well, that’s why I expected that all other placeholders (like #_MAP) would work too here!
But now I learned that (although it is working) templates are meant to replace the “format” that is defined in the general settings, which makes sense of course. Anyway is it safe to use templates also at the event description like I did?
Wed 14 Jan 2015 at 22:56 #53323FrankyKeymasterThe layout should be defined in the single event format setting, not in the description.
You *can* use shortcodes in the description, but they are only useful to show event-related stuff (like showing a list of events happening at the same location or so, but even that is better placed in the single event format).Thu 15 Jan 2015 at 05:46 #53324AnonymousInactiveOk, understood and I think I already reorganized myself and now I only have the real description of the event in my notes and to be honest works like a charm 😉
BTW I already did some modifications on my translation, please be sure to let me know prior your next release please!Thu 15 Jan 2015 at 13:32 #53325FrankyKeymasterYou’re free to send me the updates already.
-
AuthorPosts
- The forum ‘Generic’ is closed to new topics and replies.