Hello everyone.
I don’t understand what happens with my code in MODx Revolution 2.0.5. So, maybe you could be help me whith my problem.
I created a TV "colorTheme" with a default value "@INHERIT"
My tree ressources :
- Parent document 1 (1) => ColorTheme TV = "green"
[list]
[li]Child 1 (2) => colorTheme TV = "@INHERIT"
- Child 2 (3) => colorTheme TV = "@INHERIT"
[/li]
[/list]
I want to list all childs and change the colour of my list with colorTheme TV.
[[!getResources? &includeContent=`1` &depth=`1` &includeTVs=`1` &parents=`1` &tpl=`prestationsHome.innerTpl`]]
And my chunk "prestationsHome.innerTpl"
<div class="[[+tv.colorTheme]]">
<p>[[+pagetitle]]</p>
</div>
Actually, Modx shows me "@INHERIT" and not "green".
How to retrieve the parent value ?
Thank you for your help