Hello,
im trying to put a condition where certain folders appear in my rss, and not just the modDocuments in the where condition
RSS - My sitename [[~[[*id]]? &scheme=`full`]] [[*introtext:cdata]] en 120 [[getResources? &tpl=`rssItem` &parents=`2` &depth=`10` &limit=`120` &includeContent=`1` &includeTVs=`1` &showHidden=`0` &hideContainers=`1` &where=`{"class_key:=":"modDocument"}` ]]
for example, if i have a folder like this:
parentFolder
---folder1
---folder2
---folder3
---folderxxx
---folderyyy
i want to place just folder1 to folder3, but not folderxxx and so
Thanks
-
☆ A M B ☆
- 427 Posts
-
☆ A M B ☆
- 427 Posts
The syntax is JSON and is the same as the sortby example:
{"publishedon":"ASC","createdon":"DESC"}
There are more examples on this page:
http://rtfm.modx.com/display/ADDON/getResources
And a chart to give you more ideas.
You can also use a PHP Array (per the linked docs), see here:
http://rtfm.modx.com/display/xPDO20/xPDOQuery.where