This question has been answered by tm2000. See the first response.
Can you please provide more details here - code, chunks etc. in order someone to help you.
Can you please provide more details here - code, chunks etc. in order someone to help you.Apologies - Im use getresources as so:
[[!getResources?
&parents=`[[*id]]`
&limit=`10`
&sortby=`publishedon`
&sortDir=`DESC`
&processTVs=`1`
&includeTVs=`1`
&showHidden=`1`
&tpl=`singleYoutubeVideo`
]]You might give this a try (change &limit to however many you want to show):
[[!getResources? &parents=`[[*id]]` &limit=`10` &sortby=`publishedon` &sortDir=`DESC` &processTVs=`1` &includeTVs=`1` &showHidden=`1` &tpl=`singleYoutubeVideo` ]]
You'd need a script to evaluate the pub date and output the class if its within 7 days - i had one at my old company which did exactly the same thing - however I no longer have access to that resource.Yes precisely - but that's the bit I don't know how to do!