2016-02-19 39 views
0

如何僅顯示今天和未來發布的資源?如何只顯示將來發布的資源(Modx)?

喜歡的東西:

[[!getResources? 
&parents=`5` 
&where=`publishedon => [[dateToday?]]` 
&tpl=`calendar` 
&includeContent=`1`]] 

dateToday片段:

<?php 
return date("Y-m-d"); 

我想知道如何編寫正確的方式這樣的說法:

&where=`publishedon => [[dateToday?]]` 

回答

0

我找到了解決辦法:

&where=`{"publishedon:>":[[!stringToTime? &input=`0 days`]]}`