"Ad to..." Header Nav only responds on default.php

Permalink
Hey guys. I'm new to concrete5 templating, and it seems to be really simple. Here is my code for the navigation:

<?php
$a = new Area('Header Nav');
$a->display($c);
?>

Of course, I have this in all of my templates for where I would like the navigation, but I am only getting a navigation on the default.php templated page. I have taken that default.php temp and saved it over the other temp just to check, and it still wouldn't work. Is there something I'm missing? I can't get it to add the nav on other pages, or even respond when I try to click it in "Edit Mode." Thanks in advance for the help.

I will attempt to upload a good free template if someone helps me figure this out!

 
jelthure replied on at Permalink Reply
jelthure
please post your full file, it might be something else on the page thats messing with you.
alanski replied on at Permalink Reply
alanski
Have this on latest 5.1 release
How to globalise the main nav?
WebcentricLtd replied on at Permalink Reply
for a global block use GlobalArea

<?php
$a = new GlobalArea('Header Nav');
$a->display($c);
?>

if you want it on all pages then reference it in them in the correct place(or ideally in a header file if possible).

Go to stacks - global areas, add an auto-nav block to your stack...