[[!siblingNav? &nextTpl=`tpl.sn.next` &prevTpl=`tpl.sn.prev`]] <section class="layout_routing layout_2col"> [[+sn.prev]] [[+sn.next]] </section>
This question has been answered by Jako. See the first response.
<section class="layout_routing [[+sn.prev:ne=``:and:if=`[[+sn.prev]]`:ne=``:then=`layout_2col`]]">
<section class="layout_routing [[*id:if=`[[+sn.prev]]`:ne=``:and:if=`[[+sn.prev]]`:ne=``:then=`layout_2col`]]">
<?php $then = $modx->getOption('then', $scriptProperties, ''); $else = $modx->getOption('else', $scriptProperties, ''); unset($scriptProperties['then']); unset($scriptProperties['else']); foreach ($scriptProperties as $value) { if ($value == '') { return $then; } } return $else;
[[IfOneIsEmpty? &subject1 = `[[+sn.prev]]` &subject2 = `[[+sn.next]]` &then=`` &else=`layout_2col`]]
<section class="layout_routing layout_2col [[+sn.prev:notempty=`col_left_active`]] [[+sn.next:notempty=`col_right_active`]]">