I am trying to display a list of nodes with a "displayOnFrontpageUntil" date parameter. Onle nodes with the date set to after current date should be listed.
Oops! I've given chris a + to redress the balance.
Well, seeing as we're going down the wrong road already, both solutions should work fine. The umbraco.library command will only work on a valid datetime - are you using the umbraco datepicker to select your date?
Listing nodes with date after current date
I am trying to display a list of nodes with a "displayOnFrontpageUntil" date parameter. Onle nodes with the date set to after current date should be listed.
How do i go about this?
Hi Dan,
This might not be the perfect solution, but it will certainly work:
Obviously you will need to change the for-each loop to select the appropriate nodes and then change whatever you wish to output in the middle :)
Cheers,
Chris
There's also the old
Dan
Great, that works.
ups - press the wrong solved button by mistake. Should have been Chris' post.
Dan Draynes solution makes an error:
Oops! I've given chris a + to redress the balance.
Well, seeing as we're going down the wrong road already, both solutions should work fine. The umbraco.library command will only work on a valid datetime - are you using the umbraco datepicker to select your date?
Dan
yes - the "date picker" data type.
Ooh, did you copy and paste my code direct? using
instead of
Dan
Not sure what did wrong before - but have now got it to work with your solution as well.
Thanks for the help.
/Dan
is working on a reply...