[!ShowStuff? $docId=`[[*id]]`!]
<?php
/* ShowStuff Snippet */
$output = '';
switch($id) {
case 1:
case 2:
$output = 'a';
break;
default:
$output = 'z';
break;
}
return $output;This question has been answered by yama. See the first response.


<?php
/* ShowStuff Snippet */
$output = '';
$id = $modx->documentObject['id'];
switch($id) {
case 1:
case 2:
$output = '{{a}}';
break;
default:
$output = '{{z}}';
break;
}
return $output;

