Auto-Nav not appearing in page types

Permalink
I have started building my first Concrete5 project and the theme works as it should. The problem comes when I try to add a custom page type. I have added a new file to the themes folder called interior_2col.php and have set up links to the header.php file that is in the elements folder.

The header file calls:

<div id="headerNav">
<?php 
$a = new Area('Header Nav');
$a->display($c);
?>
</div>


On the default.php file the top nav displays on any new page I create, but when I create a new page using a custom page type it doesn't display the top-nav.

Any advice on how I could get this to display automatically?

Thanks

 
Mnkras replied on at Permalink Reply
Mnkras
you can use page defaults located at Dashboard->Pages and Themes->Page Types

and hit the default button, any new pages will have anything those pages have
dgould replied on at Permalink Reply
Sorry, I meant to add when I go into Dashboard and select Pages and Themes I want to select my new page layout, not the default layout. The new page layout doesn't pull in the top nav.

How can I get it to pull in?
jordanlev replied on at Permalink Reply
jordanlev
Go to dashboard, click "Pages and Themes", then click the "Page Types" tab. You should now see a list of all the page types (layouts) on your site. Click the "Defaults" button next to the layout you want to change.

After you add the header nav block to the default, by the way, you will want to click on that block and choose "Setup on Child Pages" so it can be automatically copied to existing pages (unless you've already put it on existing pages, in which case you don't need to do this).

HTH!

-Jordan
dgould replied on at Permalink Reply
Looks like I must have missed something in my new page type as my custom page type won't pull in the nav but if I use an existing one it will.

I'll rebuild carefully from a current site and see what I missed.
kappi replied on at Permalink Reply
Thankyou very very much, was starting to panic.