Many thanks for your reply!... Unfortunately I can't get it to work.
I've clear the cache, checked the log file which had this in it:
[2011-12-02 14:00:22] (ERROR @ /index.php) SELECT `modResource`.`id`, `modResource`.`type`, `modResource`.`contentType`, `modResource`.`pagetitle`, `modResource`.`longtitle`, `modResource`.`description`, `modResource`.`alias`, `modResource`.`link_attributes`, `modResource`.`published`, `modResource`.`pub_date`, `modResource`.`unpub_date`, `modResource`.`parent`, `modResource`.`isfolder`, `modResource`.`introtext`, `modResource`.`richtext`, `modResource`.`template`, `modResource`.`menuindex`, `modResource`.`searchable`, `modResource`.`cacheable`, `modResource`.`createdby`, `modResource`.`createdon`, `modResource`.`editedby`, `modResource`.`editedon`, `modResource`.`deleted`, `modResource`.`deletedon`, `modResource`.`deletedby`, `modResource`.`publishedon`, `modResource`.`publishedby`, `modResource`.`menutitle`, `modResource`.`donthit`, `modResource`.`privateweb`, `modResource`.`privatemgr`, `modResource`.`content_dispo`, `modResource`.`hidemenu`, `modResource`.`class_key`, `modResource`.`context_key`, `modResource`.`content_type`, `modResource`.`uri`, `modResource`.`uri_override` FROM `cms_site_content` AS `modResource` WHERE ( ( modResource.parent IN (14,638,1649) AND `modResource`.`deleted` = 0 AND `modResource`.`published` = 1 AND `modResource`.`hidemenu` = 0 ) AND `modResource`.`publishedon` <= '[[!getTime? &from=`-7 days`]]' ) ORDER BY publishedon DESC LIMIT 5
This is the Snippet call I'm using... I know I don't need all the options, I was just trying to get it to work:
[[getResources? &parents=`14` &includeContent=`1` &includeTVs=`1` &processTVs=`1` &tpl=`FeaturedHpSmallBCTpl` &limit=`5` &where=`{"publishedon:<=":"[[!getTime? &from=`-7 days`]]"}` &debug=`true`]]
The actual date TV will be a custom TV I've setup (set to 'date' of course). I assume that if I can get it to work on the 'publishedon' field it will also work on a custom date TV. The snippet call will be used as a 'What's on this Week' widget so can I change the: `
-7 days`]] to `
+7 days`]] ?
I've also made sure there are resources in the &parents folder that are within the last 7 days.