SOLVED : Why are some pages apearing in my primary navigation?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
Eskymo

SOLVED : Why are some pages apearing in my primary navigation?

Post 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?
Last edited by Eskymo on Fri Nov 02, 2007 8:34 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Why are some pages apearing in my primary navigation?

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Eskymo

Re: Why are some pages apearing in my primary navigation?

Post 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.
User avatar
lollipop27
Forum Members
Forum Members
Posts: 237
Joined: Wed Sep 12, 2007 4:09 pm

Re: Why are some pages apearing in my primary navigation?

Post 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...
Eskymo

Re: Why are some pages apearing in my primary navigation?

Post 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.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Why are some pages apearing in my primary navigation?

Post 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
Last edited by Nullig on Fri Nov 02, 2007 7:56 pm, edited 1 time in total.
Eskymo

Re: Why are some pages apearing in my primary navigation?

Post 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.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Why are some pages apearing in my primary navigation?

Post 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
Last edited by Nullig on Fri Nov 02, 2007 8:34 pm, edited 1 time in total.
Eskymo

Re: Why are some pages apearing in my primary navigation?

Post 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.
Locked

Return to “CMSMS Core”