[[!getResources? &parents=`52` &includeContent=`1` &includeTVs=`1` &processTVs=`1` &depth=`1` &tpl=`tpl-Service` ]]
<article class="ym-g33 ym-gl"> <div class="ym-gbox"> <a class="service" href="[[~[[+content]]]]"> <div class="icon-background" id="[[+tv.ID]]"> [[+tv.icon]] </div> <h3>[[+pagetitle]]</h3> </a> </div> </article>
This question has been answered by sottwell. See the first response.
[[getResourceField? &id=`[[getContext:isequalto=`web`:then=`46`:else=`172`]]` &field=`pagetitle` ]]
<?php $contextKey = $modx->context->key; return $contextKey;
One way would be to create context settings for the parent value. Have the resource ID for the appropriate parent as the value for the setting in each context, then use [[++parent]] for your &parents parameter value.
http://rtfm.modx.com/display/revolution20/Contexts
Yeah, look into the BabelTranslation snippet .
[[getResourceField? &id=`[[getContext:isequalto=`web`:then=`46`:else=`172`]]` &field=`pagetitle` ]]