Hi,
I have a TV called apToDate.
How can I use the NewsListing filter property to only show documents where apToDate is greater than or equal to the current date.
i.e. tvapToDate >=CurrentDate
Below is how I call NewsListing
$snippetName= 'ap-NewsListing';
$snippetParams=array('summarize'=>4,
'multilevel'=>1,
'truncText'=>"Read More",
'hidefolders'=>"true",
'truncSplit'=>"false",
'tpl'=>"ap-listing-home",
'dateformat'=>"%b %d, %Y",
'showarch'=>"false",
'archplaceholder'=>1,
'emptytext'=>"No content available",
'paginate'=>1,
'prv'=>"ap-paginate-prv",
'nxt'=>"ap-paginate-nxt");
...
//-- condition if EVENTS folder is TRUE
else if($modx->documentObject['id'] == 16){
$snippetParams['summarize'] = 4;
$snippetParams['tpl'] = "ap-listing-channelEvents";
$snippetParams['srotby'] = "apEventFromDate";
$snippetParams['truncText'] = "Details";
$docID=$modx->documentObject['id'];
$snippetParams['startID'] = $docID;
$outstring='<div class="brief event cf"><dl>';
$outstring.=$modx->runSnippet($snippetName, $snippetParams);
$outstring.='</dl></div> <!-- /event --><hr />';
}
I’d ike to thank in advance for all your time and efforts.
regards,
-raavi