Hiding breadcrumb using attribute
Permalink
Hi,
I'm trying to use an attribute to hide the breadcrumb on selected pages.
I've currently got the following code which isn't working.
<?php
if ($c->getCollectionAttributeValue('hide_breadcrumb') !== '1'):
$a = new GlobalArea('breadcrumb');
$a->display($c);
endif;
?>
Any pointers massively appreciate.
I'm trying to use an attribute to hide the breadcrumb on selected pages.
I've currently got the following code which isn't working.
<?php
if ($c->getCollectionAttributeValue('hide_breadcrumb') !== '1'):
$a = new GlobalArea('breadcrumb');
$a->display($c);
endif;
?>
Any pointers massively appreciate.
Assuming your attribute is a boolean (checkbox) attribute you should be able to just do this
Thank you! It works like a dream. I've just spent the last two hours trying to figure this out.
Pretty cool and I love this.
http://myloweslife.onl/
http://myloweslife.onl/