I am creating an events list, where the user puts in a date of the event - I have been pulling the nodes through fine, but now I would like to display the events to the user from today's date onwards?
As the results for past events are a bit pointless - Just wondering if anyone has done anything similar? If so could I ask for a sneak peek at your syntax?
Selecting Nodes From Todays Date Onwards?
I am creating an events list, where the user puts in a date of the event - I have been pulling the nodes through fine, but now I would like to display the events to the user from today's date onwards?
As the results for past events are a bit pointless - Just wondering if anyone has done anything similar? If so could I ask for a sneak peek at your syntax?
Any help appreciated =)
Hows about using http://our.umbraco.org/wiki/reference/umbracolibrary/dategreaterthantoday in your xslt?
Hey Lee,
something like this should do:
The above compares two dates, but you could very easily just remove the OR clause.
HTH,
Nik
As for syntax, something like
(untested!)
Dan
Haven't done it, but you should be able to get the current date in XSLT via:
Also a date diff is available:
Hehe, well, that was fast, I should check if other people have answered already ;-) At least I picked up a new technique from this. :D
@Sebasitan Hey, so did I. Thanks for sharing the Exslt method as well.
Awesome you have to love this place!! Thanks chaps, I'll have a play and mark the one that worked best for me as the answer
Thanks again for all the replies
is working on a reply...