Summary
Hello,
Im trying to create a nested template/chunk structure. My idea is to able to use template variable as selection for &tpl=`` in pdoResource call in the same chunk like below:
[[pdoResources?
&parents=`[[+id]]`
&depth=`0`
&limit=`0`
&where=`[{"template:=":5}]`
&includeTVs=`fbRowLayoutType`
&prepareTVs=``
&sortby=`{"menuindex":"ASC","pagetitle":"ASC"}`
&showHidden=`1`
&tpl=`[[+tv.fbRowLayoutType]]`
]]
and this does not work.
I have also tried to do two pdoResource call one to get the value and save it placeholder and use it in next call (all in the same chunk):
[[pdoResources?
&parents=`[[+id]]`
&depth=`0`
&limit=`0`
&where=`[{"template:=":5}]`
&includeTVs=`fbRowLayoutType`
&sortby=`{"menuindex":"ASC","pagetitle":"ASC"}`
&showHidden=`1`
&toPlaceholder=`fbRowType`
&tpl=`@INLINE [[+tv.fbRowLayoutType]]`
]]
[[pdoResources?
&parents=`[[+id]]`
&depth=`0`
&limit=`0`
&where=`[{"template:=":5}]`
&includeTVs=`fbRowLayoutType`
&prepareTVs=``
&sortby=`{"menuindex":"ASC","pagetitle":"ASC"}`
&showHidden=`1`
&tpl=`[[+fbRowType:htmlent]]`
]]
Outputing just [[+fbRowType]] as works but not if i try to use it in pdoResources call…
Is there any way how to achieve that? Or maybe I’m missing something?
Thanks guys!