Page 1 of 1
SOLVED : Why are some pages apearing in my primary navigation?
Posted: Fri Nov 02, 2007 4:52 pm
by Eskymo
Hi there
I've created some extra pages for my site that I only want linked to via the footer navigation - Sitemap, Terms, Privacy. And I've also created a News Detail page for my news articles to be displayed on. I've not set a parent page for any of these new pages and because of this when I look at the source code of a live page, these pages have been added to my primary navigation list...
Home
Services
Security
Sales
News
Case Studies
Library
Contact
Privacy
Terms & Conditions
Sitemap
News Detail
Is this normal? They don't actually show up in my navigation on the page as I have this styled with CSS and there are no id's in the CSS for these extra pages, so it's not messing the layout up, but not sure it's good to have them in my primary nav code - is there a way of stopping them appearing?
Re: Why are some pages apearing in my primary navigation?
Posted: Fri Nov 02, 2007 5:31 pm
by calguy1000
is to put all of the pages you want to link to from the footer under a 'section header', call it 'footer' though it doesn't really matter what you call it. Make sure you mark this 'section header' as 'not shown in menu'. then your top nav will be back to what it was before.
Now, in your bottom nav, use {menu start_element='footer'} and it should show you just the nav items you want in your footer.
Re: Why are some pages apearing in my primary navigation?
Posted: Fri Nov 02, 2007 6:31 pm
by Eskymo
not exaclty sure what you mean by a 'section header' and how I would do that. I've not configured my footer navigation yet, but it contains text links to all the primary nav pages as well as sitemap, privacy and terms. So not sure I could use your 'not shown in menu' option as that would surely interfere with my primary navigation. I am new to working with a CMS and so it's all a bit baffling as I would just normally do this for the footer nav:
Code: Select all
<ul class="footernav">
<li><a href="#">home</a> |</li>
<li><a href="#">services</a> |</li>
<li><a href="#">security</a> |</li>
<li><a href="#">sales</a> |</li>
<li><a href="#">news</a> |</li>
<li><a href="#">case studies</a> |</li>
<li><a href="#">library</a> |</li>
<li><a href="#">contact</a> |</li>
<li><a href="#">sitemap</a> |</li>
<li><a href="#">t&c's</a> |</li>
<li><a href="#">privacy</a></li>
</ul>
but I have no idea how to link to the pages. I do have another thread open requesting help with my footer nav but not got a definite solution yet as I don't understand fully how to do what the last poster suggested.
Re: Why are some pages apearing in my primary navigation?
Posted: Fri Nov 02, 2007 7:11 pm
by lollipop27
the solution calguy100 mentioned is the most elegant one, sectionheader is a content type, so you creat a new site with type sectionheader.... but so long, did you mark these sites as "don't show in menu"??? otherwise, they'll obviously appear in the navigation....
i have several sites, like sitemap impressum, etc, and i just mak them as not shown in menu...
Re: Why are some pages apearing in my primary navigation?
Posted: Fri Nov 02, 2007 7:32 pm
by Eskymo
I'm sorry but I have no idea what you mean. I'm full of cold today and so it could be my fuzzy head.
Re: Why are some pages apearing in my primary navigation?
Posted: Fri Nov 02, 2007 7:42 pm
by Nullig
On the Pages menu, add new content but give it a content type of "Section Header" and name it "footer" (without the quotes). On the "Options" tab, remove the checkmark beside "Show in Menu:". Then make this new content the "parent" for the items you want to appear in the footer menu. Where you want the footer menu to appear, use {menu start_element='footer'}.
Pages that you don't want showing on your menus should have the checkmark beside "Show in Menu:" deselected on their Options tab.
Nullig
Re: Why are some pages apearing in my primary navigation?
Posted: Fri Nov 02, 2007 8:01 pm
by Eskymo
I'd not spotted that in the options tab - that's an easy solution - will make sure the ones I don't want in the menu to be un-checked.
thanks for the help.
Re: Why are some pages apearing in my primary navigation?
Posted: Fri Nov 02, 2007 8:24 pm
by Nullig
Here's a simple menu setup that I use:
1 Top <-- Section Header not shown in menu
1.1 - Home
1.2 - Services
1.3 - Pricing
1.4 - Contact
2 Bottom <-- Section Header not shown in menu
2.1 - Privacy
2.2 - Terms & Conditions
3 Form <-- Page not shown in menu
4 News <-- Page not shown in menu
Top menu call in template - {menu start_element="1.1" show_root_siblings="1"}
Bottom menu call in template - {menu start_element="2.1" show_root_siblings="1"}
Nullig
Re: Why are some pages apearing in my primary navigation?
Posted: Fri Nov 02, 2007 8:33 pm
by Eskymo
thanks for the explanation Nullig but not sure I want to implement that on this site as I've already sorted out my CSS primary nav and unchecking the pages that I don't want appearing the primary nav will work just fine.
thanks for all the help in sorting this simple thing out for me...learning something new everyday.