Skip to content

Instantly share code, notes, and snippets.

@ideesimple
Created December 2, 2010 08:58
Show Gist options
  • Save ideesimple/725010 to your computer and use it in GitHub Desktop.
Save ideesimple/725010 to your computer and use it in GitHub Desktop.
show chunk if parent is:
$current_docid = $modx->resource->get('parent');
$output ='';
if($current_docid ==8){
$output = $modx->getChunk('this_chunk');
}
elseif($current_docid ==9){
$output = $modx->getChunk('this_chunk');
}
return $output;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment