Events Made Easy Forums Generic Using templates at an Event description

Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #53306
    Anonymous
    Inactive

    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
    JK

    #53307
    Franky
    Keymaster

    The 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.

    #53308
    Anonymous
    Inactive

    small 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

    #53309
    Anonymous
    Inactive

    With this I just realized how flexible and powerful EME really is!
    Many thanks for pushing me into the right direction Franky!

    #53310
    Franky
    Keymaster

    🙂

    #53311
    Anonymous
    Inactive

    I’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!?

    #53312
    Franky
    Keymaster

    #_MAP should work just fine in the single event template

    #53314
    Anonymous
    Inactive

    Well 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.

    #53315
    Anonymous
    Inactive

    same with #_DIRECTIONS!

    #53316
    Anonymous
    Inactive

    Strange – 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.

    #53317
    Franky
    Keymaster

    First try to put #_MAP directly in the single event format, leave out templates to begin with.

    #53318
    Anonymous
    Inactive

    At the standard format for the event it works.

    #53319
    Franky
    Keymaster

    The 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).

    #53321
    Anonymous
    Inactive

    And 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?

    #53323
    Franky
    Keymaster

    The 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).

    #53324
    Anonymous
    Inactive

    Ok, 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!

    #53325
    Franky
    Keymaster

    You’re free to send me the updates already.

Viewing 17 posts - 1 through 17 (of 17 total)
  • The forum ‘Generic’ is closed to new topics and replies.
Scroll to Top