Display Area in Header
Permalink
I have a display area in the header of my custom theme that I would like to be global.
Currently the content has to be set on every page.
Any way around this?
Currently the content has to be set on every page.
Any way around this?
check out defaults in page types from your dashboard.
Okay, I created an elements\autonav.php file:
and my default.php has an include:
So when I create a new page, in edit mode I see "Add to Auto-Nav" where I can specify the block to add, but I still have to add that block for each new page.
Can I add a block at a global level so that block & custom template will then be shown on each new page? My use case is to display breadcrumbs on each page without making the user add it each time. Thanks!
<?php $a = new Area('Auto-Nav'); $a->display($c); ?>
and my default.php has an include:
<?php $this->inc('elements/autonav.php'); ?>
So when I create a new page, in edit mode I see "Add to Auto-Nav" where I can specify the block to add, but I still have to add that block for each new page.
Can I add a block at a global level so that block & custom template will then be shown on each new page? My use case is to display breadcrumbs on each page without making the user add it each time. Thanks!
Never mind. I just watched your screencast on Scrapbook & Defaults and answered how to do it. Thanks - I'm loving Concrete5!
So to call headers and footers you just include:
Check out the help section for more detail on how to do this. The instructions are really helpful:http://www.concrete5.org/help/building_with_concrete5/developers/th...