Search code examples
modx

modx ditto filtering


I have this line of code: [[Ditto? &depth=3 &tpl=@FILEweb_assets/chunks/x/x.html &parents=3 &filter=template,7|endDate,[+now+],3]]

The above line displays all items which using template 7. Now I want to make a change so that it will display all items with template 7 and 10. What should I do??

thanks


Solution

  • According to the documentation you can simply add another clause as follows

    [[Ditto? &depth=3 &tpl=@FILEweb_assets/chunks/x/x.html &parents=3 &filter=template,7|template,10|endDate,[+now+],3]]