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
Post a Comment