Support » Plugin: Event Organiser » [Plugin: Event Organiser] Using templates with the Events widget

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi John,
    The ‘template’ for widgets (different from page templates) was originally only available to the event list shortcode. The documentation for the template can be found on the page for the event list shortcode.

    Hope that helps 🙂

    So the text box titled “Template (leave blank for default)” in the Events widget is actually for template tags and not the name of a template file?

    That’s right yes. Sorry for any confusion. I need to provide an explanation since it’s unclear what is being asked for or where the template tags can be found.

    Finally getting back to this and now I understand how the templating works in the Events List widget. 🙂

    So a new question is can I use a conditional of some sort in the template? For example, if an event is all day it will say, “All day” rather than list the start and end times.

    I’ve tried a couple ways but haven’t found a solution yet.

    Unfortunately conditional statements aren’t yet supported for the widget template field. The closest to such as thing is

    %start{date-format}{time-format}%

    The second argument is ignored for ‘all day’ events. So you can just display the time for non-all-day events. Unfortunately, this doesn’t allow you to add ‘all day’ to the appropriate events.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Event Organiser] Using templates with the Events widget’ is closed to new replies.