modx revo getresources multiple templates -


is possible use multiple tpl's in getresources call?

this code far:

[[!getpage?   &element=`getresources`   &tpl=`overzichttpl`   &parents=`2, 74`   &hidecontainers=`0`   &showhidden=`1`   &limit=`50`   &sortby=`rand()`   &depth=`0`   &includetvs=`1` ]] 

what want achieve folowing: resource call

&parent=`2` 

has use

&tpl=`overzichttpl` 

and the

&parent=`74` 

has use

&tpl=`overzichtadvtpl`  

furthermore want have output both calls displayed @ random. (otherwise have use 2 seperate getresources calls). example this: resource-call

if have solution, i'm looking forward hear you.

this documented using tpl_n & tplnn:

https://rtfm.modx.com/extras/revo/getresources

if need randomize templates, write snippet , execute getresources call (i.e. &tpl=`randomizechunkname`) don't need wrapper chunk.


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -