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:
However using a different theme used for sub pages I am getting:
Both themes are very similar and both are using the following code in the header.php file:
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
<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"> </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
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
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
Is it specified in the page defaults for that page type?
-Steve
-Steve
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
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
pick your poison :)