On my home page I have a side bar that has the 3 future events (the code is below). The problem is if I keep pas events published then it will not show anything because it takes the first 3 events including past ones. Until I worked around this by un-publishing past evetns until today so the next 3 are in the future. BUT now I have a calendar that pulls from events that are published. I would like to show the past events on the calendar or else it looks like we had nothing up until today. My list of events (on the events page) shows only the future events.
I would like show the next three events from today but keep all past events published so that the calendar shows all.
I am not a developper but a somewhat curious and adept end-user. Any help would be greatly appreciated.
Sub-Navigation Events Publishing
Hello,
On my home page I have a side bar that has the 3 future events (the code is below). The problem is if I keep pas events published then it will not show anything because it takes the first 3 events including past ones. Until I worked around this by un-publishing past evetns until today so the next 3 are in the future. BUT now I have a calendar that pulls from events that are published. I would like to show the past events on the calendar or else it looks like we had nothing up until today. My list of events (on the events page) shows only the future events.
I would like show the next three events from today but keep all past events published so that the calendar shows all.
I am not a developper but a somewhat curious and adept end-user. Any help would be greatly appreciated.
Merci, thank you,
Christophe
Hi Christophe,
You just need to modify the xPath which selects the events nodes. Change
to be
and then remove the date test (leave the position one :)
/Josh
Wow, that works like a charm, thank you so much for your help.
Christophe
is working on a reply...