Events Made Easy › Forums › How do I … › Formatting & end date
Tagged: date end, default event list format, end date, events_if
- This topic has 9 replies, 4 voices, and was last updated 13 years, 3 months ago by Anonymous.
-
AuthorPosts
-
Thu 8 Sep 2011 at 22:36 #43433AnonymousInactive
Having troubles with the end date, in all lists and views: when there is no date/time, the value is still shown.
What ist the best/suggested format when you have al kind event durations, e.g.
– 30 minutes
– 6 hours over midnight
– starting day 1 at 9:00, ending day 2 at 14:00
I’tried a lot but every format hat pros and cons… despite the problem with the allways displayed end date/time.
thx!
Fri 9 Sep 2011 at 06:08 #48366FrankyKeymasterRead this:
http://www.e-dynamics.be/wordpress/?cat=24
There’s an example there to hide the end date if it is the same as the start date
Fri 9 Sep 2011 at 13:30 #48367AnonymousInactiveHi, I have my problems too with the end date…
I “played a little bit around” – but without succes…
Where (means the exact point) the example
#_{j M Y} [events_if tag="#ESC_{j M Y}" notvalue="#ESC@_{j M Y}"] #@_{- j M Y} [/events_if]
from
http://www.e-dynamics.be/wordpress/?cat=24
has to be inserted into “Default event list format” (German: “Standard-Listenformat für Veranstaltungen”):
<li><b>#D #j. #M #Y - #H:#i Uhr bis #@H:#@i Uhr</b> #_LINKEDNAME<i>Wo?</i> #_ADDRESS </li>
<p>#_NOTES</p>to get the end date only shown if it is different from the start date?
If you want to know what I mean have a look at http://www.umwelttisch.de “Termine” …
The same question occurs concerning a single event.
thx
didi
Sat 10 Sep 2011 at 08:18 #48368FrankyKeymasterPut it wherever you want the info to appear in the list (but you’re li-tag should be at the end). An example:
<li><b>#D #j #M #Y - #H:#i Uhr bis [events_if tag="#ESC_{j M Y}" notvalue="#ESC@_{j M Y}"] #@_{- j M Y} [/events_if] #@H:#@i Uhr</b> #_LINKEDNAME <i>Wo?</i>#_ADDRESS
<p>#_NOTES</p>
</li>Sun 11 Sep 2011 at 13:20 #48369AnonymousInactiveThank you, Franky…
But I can’t manage it…
If I insert your suggestion concerning the start and end time – means hours and minutes – it works fine until I try to choose the same day AND time. At this moment the calendar always changes automatically the end date to the following day … so what is to do?
My intention is:
I want to announce events taking mostly only one day where I often don’t know the end. But there may be events from more days as well as known ends…
Thank you once again.
Didi
Sun 11 Sep 2011 at 20:22 #48370FrankyKeymasterIn trunk (development version):
the end time can now be the same as the start time, so you can test on this to not show end date/time info (for eg. events without end)
Wed 14 Sep 2011 at 18:20 #48371AnonymousInactiveFranky,
I’m posting this question here because it looked like it might be related…
I installed the trunk version today and notice that end dates for 1 day events are suddenly showing up – both in my widget list and individual event lists.
I’ve been using the following code all along to hide the end date when it matched the begin date:
<li>#_{jS} [events_if tag="#ESC_{j M Y}" notvalue="#ESC@_{j M Y}"] #@_{- jS} [/events_if]   #_LINKEDNAME<br /></li>
Other than the different form of month/year, it looks like it matches your suggested code.
Help!
Wed 14 Sep 2011 at 19:45 #48372FrankyKeymasterHmmm … the change I made only has effect on the possible end date you can use, nothing else … but as usual: I could’ve created a new bug 🙂 Let me test this out here first.
Wed 14 Sep 2011 at 20:01 #48373FrankyKeymasterWel, lucky for me I could quickly find the problem: has been fixed in trunk:
Wed 14 Sep 2011 at 20:21 #48374AnonymousInactiveWell, lucky for me you’re a smart one… 🙂
Also lucky I caught you before you were done for the day!
Thank you.
-
AuthorPosts
- The forum ‘How do I …’ is closed to new topics and replies.