Menu Issues

Discuss PivotX 2.0.x here. Non-PivotX related discussions go in The Drain.

Menu Issues

Postby leke » Fri Oct 19, 2012 10:25 pm

I'm having some issues with the menu. I wanted to create a page that would be the index page while being hidden in the menu. I've created the page, but can't find the option to exclude it from the menu.

How do I hide the index page from the menu -- or what file are the menu items in?

Thanks.
leke
 
Posts: 3
Joined: Fri Oct 19, 2012 1:30 pm

Re: Menu Issues

Postby ljhelbo » Sat Oct 20, 2012 9:39 am

Depends on which Theme, you are using. In many themes (including most of those, which I made) the menu is defined in the file _sub_main_menu.tpl. As an example here is this file from the theme scribbled:

Code: Select all
<div id="scribbledmenu">
   <ul>
      <li><a href="[[webloghome]]" accesskey="1">Home</a></li>
      [[ pagelist
      chapterbegin=""
      onlychapter="Pages"
      pages="<li><a href='%link%' title='%subtitle%' %active%>%title%</a></li>"
      chapterend=""
      isactive="class='current'"
      sort="title"
      ]]
   </ul>
</div>
<!-- end #menu -->


You should note the line onlychapter="Pages". This means the menu will include all pages from the chapter Pages and no other.
ljhelbo
 
Posts: 104
Joined: Sat Feb 26, 2011 2:58 pm
Location: Denmark

Re: Menu Issues

Postby leke » Sat Oct 20, 2012 10:36 am

Thanks, that worked :)
My theme was Clarity and the menu part you showed me was in the file _sub_header.tpl
It didn’t have the line, onlychapter="Pages" so I added it and put the index page to another chapter.
leke
 
Posts: 3
Joined: Fri Oct 19, 2012 1:30 pm

Re: Menu Issues

Postby petercr » Mon Jul 29, 2013 11:06 am

I'm having issues with my menu too! I can't seem to find the file _sub_main_menu.tpl, is there anything else I should look for?
Peter
petercr
 
Posts: 2
Joined: Mon Jul 29, 2013 10:36 am

Re: Menu Issues

Postby Harm10 » Mon Jul 29, 2013 7:39 pm

petercr wrote:I'm having issues with my menu too! I can't seem to find the file _sub_main_menu.tpl, is there anything else I should look for?
What theme are you using? The files belonging to the theme are all located in the folder pivotx/templates/themename.
It would also help if you specified what version you are on and what kind of issues you have...... ;)
Quality is in the detail of things............

Want to change or update your PivotX site? Mail or PM me!
I can also convert your site to a Wordpress site!
Harm10
Developer
 
Posts: 2011
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)


Return to 2.x Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron