Get a list of blog entries with a postdate within the last 24 hours
Anyone know how to format a XSL so that I get a list of blog entries with a postdate within the last 24 hours? I tried using a combo of currentdate and <= but couldn't get it right.
Could you provide us with the example you have tried to use?
If I remember correctly you need to turn the currentdate and the dates to compare with into numbers. So for instance todays date would be 201101260000 - And then you should be able to compare the other dates using the same number format.
Get a list of blog entries with a postdate within the last 24 hours
Anyone know how to format a XSL so that I get a list of blog entries with a postdate within the last 24 hours? I tried using a combo of currentdate and <= but couldn't get it right.
Hi Shannon
Could you provide us with the example you have tried to use?
If I remember correctly you need to turn the currentdate and the dates to compare with into numbers. So for instance todays date would be 201101260000 - And then you should be able to compare the other dates using the same number format.
/Jan
Hi Shannon,
Few weeks ago I had the same problem.
Check http://our.umbraco.org/forum/developers/xslt/15697-Hide-nodes-which-haven't-been-updated
Here's the XSLT
Maybe it will help you.
So this should work:
This should work in retreving blog posts but I am missing something
Hi Shannon,
Try something like this:
If this doesn't work you can set the variables $update and $difference after the sort command.
I figured out something different.
is working on a reply...