[[tvcnd? &tv=`hideSubNav` &cnd=`yes, 1` &rtn=`subNavigation`]]
$tv = $modx->getTemplateVarOutput(array('tvPrevNext'), $modx->documentIdentifier);
$l = $tv['tvPrevNext'];
if ($l == 'yes' && $modx->documentObject['isfolder'] == 0) {
return "[[PrevNext?&sortHow=`desc`]]";
I still don’t really get however how I have to setup the tv checkbox - it looks that I need to create two values to create two checkboxes to make it work although that doesn’t make sense two me - a checkbox already as two values: checked and unchecked but that doesn’t workI use just one value and have the script use either the default value if the checkbox is not active or a custom action if the checkbox is selected.