Events Made Easy Forums How do I … Week long (or longer events)

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #43924
    Anonymous
    Inactive

    I’m putting together a list of events for a school, so the events may be for an evening where times are important , for a whole day where they are not, or in the case of holidays for longer.

    I understand I can write conditional tags in the event list format and single event formats, but I’m struggling to write it out correctly.

    currently I have a single event format as…

    <h3>#j #M #Y - #g:#i#a to #@g:#@i#@a</h3>
    <h5>#_TOWN</h5>
    <p>#_EVENTIMAGE </p>
    <p>#_NOTES</p>
    <p>#_MAP</p>

    Which outputs the date and time like so ’26 Feb 2013 – 8:00pm to 10:00pm’

    Which is great for a general event that may be in an evening. What do I add and where to list an event to output as ’26 Feb 2013′ if its for a full day or ’26 Feb 2013 – 28 Feb 2013′ if its for more than a full day?

    Ideally I want to be able to do all this as a default format a I won’t be making the update and its best to assume that the person(s) doing so wont be too tech savvy. This means it has to be worked out on the fly.

    #50195
    Anonymous
    Inactive

    Aha! Sussed it!

    This does the trick

    <h3>
    [events_if tag="#ESC_{j M Y}" value="#ESC@_{j M Y}"] #j #M #Y [/events_if]
    [events_if tag="#ESC_{j M Y}" notvalue="#ESC@_{j M Y}"] #_{ j M Y} to #@_{ j M Y} [/events_if]
    [events_if tag="#ESC_{g i a}" value="#ESC@_{g i a}"] [/events_if]
    [events_if tag="#ESC_{g i a}" notvalue="#ESC@_{g i a}"] #_{g:ia} to #@_{g:ia} [/events_if]
    </h3>
    <h5>#_TOWN</h5>
    <p>#_EVENTIMAGE </p>
    <p>#_NOTES</p>
    <p>#_MAP</p>

    There’s a little work around for the all day events in that you will have to enter the start and end times as the same. This is same process for the single day events

    Ta da!

    #50196
    Franky
    Keymaster

    Thanks for the howto!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘How do I …’ is closed to new topics and replies.
Scroll to Top