[[*id:is=`1`,`95`:then=``:else=` <div class="breadcrumb"> [[BreadCrumb]] </div> `]]
[[*id:is=`1,95`:then=``:else=`
<div class="breadcrumb"> [[BreadCrumb]] </div>
`]]Not sure if it will work but try:
[[*id:is=`1,95`:then=``:else=` <div class="breadcrumb"> [[BreadCrumb]] </div> `]]
[[[[*id:is=`1`:or=`95`:then=`$breadcrumb`]]]]
<div class=breadcrumb>[[Breadcrumb]]</div>
[[*id:is=`1`:or=`95`:then=``:else=` <div class="breadcrumb"> [[BreadCrumb]] </div> `]]
How about
[[[[*id:is=`1`:or=`95`:then=`$breadcrumb`]]]]
With a breadcrumb chunk
<div class="breadcrumb">[[Breadcrumb]]</div>
[[*id:is=`1`:or=`95`:then=``:else=`
<div class="breadcrumb"> [[BreadCrumb]] </div>
`]][[[[id:is=`1`:or=`95`:then=``:else=`Breadcrumb`]]]]
There is a reason why dinocorn has that particular structure; i.e. the doubled-up tags around the conditional, and no tags inside. The way yours is, MODx will see the snippet and process the snippet before the condition is even tested. So whether it's to be displayed or not, the snippet is still processed.
By having the output of the conditional be just the snippet (or chunk) name, so that the tags aren't inside the conditional, what you get is an empty set of tags if the condition is false, and the set of tags with the snippet (or chunk) name if it's true.
[[[[id:is=`1`:or=`95`:then=``:else=`Breadcrumb`]]]]
will produce [[]] if either of the first two conditions are true, or [[Breadcrumb]] if they are both false. MODx simply removes the empty tags.
This way the snippet is only run if the resource is not #1 or #95.
Jason explains it a lot better here http://modx.com/blog/2012/09/14/tags-as-the-result-or-how-conditionals-are-like-mosquitoes/
r:is in the code[[*id:is=`1`:or:is=`95`:then=``:else=`
<div class="breadcrumb"> [[BreadCrumb]] </div>
`]]<div class="breadcrumb">[[Breadcrumbs]]</div>
<div class="breadcrumb">[[!Breadcrumbs]]</div>
[[!MyBreadCrumbs]]
/* MyBreadCrumbs snippet */
$id = $modx->resource->get('id');
if ( ($id == 1) || ($id == 95) ) {
return $modx->runSnippet('Breadcrumbs');
} else {
return '';
}