Autonav displaying different classes on home page

Permalink
I am using the autonav block on a home page of a template and it is outputting as:

<ul class="nav">
<li class="nav-selected nav-path-selected"><a class="nav-selected nav-path-selected" href="/"><span>Home</span></a></li>
<li><a href="/index.php/about/"><span>About</span></a></li>
<li><a href="/index.php/search/"><span>Search</span></a></li>
</ul>


However using a different theme used for sub pages I am getting:

<ul class="nav-header">
<li class=" first"><a ref="/">Home</a></li>
<li class="nav-selected "><a class="nav-selected" href="/index.php/about/">About</a></li>
<li class=" "><a href="/index.php/search/">Search</a></li>
</ul><div class="ccm-spacer">&nbsp;</div>


Both themes are very similar and both are using the following code in the header.php file:

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


They are both using the same page type.

I am wanting the sub pages theme to output the same list code as the home page.

Is there any reason why they are outputting different CSS classes?
Can I get all pages to display the header menu using the same code?

It looks like the home page uses "concrete/blocks/autonav/view.php"

whilst subpages appear to use:
"concrete/blocks/autonav/templates/headermenu.php"

Thanks

digievo
 
Mnkras replied on at Permalink Reply
Mnkras
click on the block and click custom templates,

pick your poison :)
digievo replied on at Permalink Reply
digievo
Thanks Mnkras,

The only options are "none selected, header menu and breadcrumbs".

If I select header menu it does not fix the issue.

For some reason the last page I created the autonav did not automatically appear. I had to add the autonav block manually. This seemed to fix the issue.

I subsequently deleted the autonav block and re-added it manually and it seems to have fixed the issue on other pages also.

Does anyone know why this is working and why it is not adding it correctly the first time.

Thanks
Shotster replied on at Permalink Best Answer Reply
Shotster
Is it specified in the page defaults for that page type?

-Steve
digievo replied on at Permalink Reply
digievo
Hi Steve,

Thanks for that!

I edited the page default for that template and it seems to be working fine for all new pages.

Still not sure how Concrete5 decides to use one class over the another?

Thanks