Wow, thanks for the superfast help!
I’m trying to get it to work but I’m getting an error where the chunks should be showing in the sidebar:
Parse error: syntax error, unexpected T_VARIABLE, expecting ’(’ in /home/kidwelly/public_html/manager/includes/document.parser.class.inc.php(770) : eval()’d code on line 4
Here’s my code:
<?php
$pid = $modx->getParent($id);
switch $pid {
case '1':
return $modx->getChunk('firsts-league');
break;
case '2':
return $modx->getChunk('chunk1');
break;
}
return $modx->getChunk('firsts-league');
?>
I have a chunk named ’firsts-league’ which includes a simple html table