[Solved] Menu Structure

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.
Post Reply
garethuk
Forum Members
Forum Members
Posts: 17
Joined: Sat Jun 19, 2010 12:58 pm

[Solved] Menu Structure

Post by garethuk »

Good afternoon,

I'm having a bit of a problem trying to use the MenuManager and was hoping someone could point me in the right direction. Just in case it's important I'm running CMS version 1.7.1, MenuManager 1.6.3, PHP 5.2.10.

Basically - I'm trying to put together the following structure with one vertical menu that is context sensitive:

The first few top level Sections are :
> People
> Cash
> Sales
> Standards

When you click on People from the menu, I'd like the current page to become an introduction to the section and then a list of other pages - so I'd like the menu to change to these options:

> Introduction (use a different li class to show active)
> Policies
> Paperwork
> Guides

But when I click on policies, I'd still like to see introduction at the top of the list.

The next awkward part is that the some of the sections may end up deeper than others. For example People will only be 2 pages deep - PEOPLE SECTION -> CONTENT PAGE, but standards may be deeper - STANDARDS SECTION -> MERCHANDISING -> HOT FOOD -> CONTENT PAGE.

The attempt I've made is with the following page structure:
1. Home
2. People (assumed that the content on this page would be the first page shown - so would this double as "Introduction")
2.1 Policies
2.2 Paperwork
2.3 Guides
3. Cash
4. Sales
5. Standards

Does anyone have any suggestions over how to approach this??
Many thanks,
Gareth
Last edited by garethuk on Sun Jun 20, 2010 8:35 am, edited 1 time in total.
garethuk
Forum Members
Forum Members
Posts: 17
Joined: Sat Jun 19, 2010 12:58 pm

Re: Menu Structure

Post by garethuk »

I think I've solved it - at least partially. I've created top level section headers for all content (I.e. People Section) and made the actual content children of these headers. I then created a series of internal links pointing at each sections introduction (but with menu text of simply the section name. I made these links all children if the homepage. Finally in my template, I simply used Start_level=2.

The one thing I need to figure out still is what happens when a section goes to a 3rd level, as i'll want it to see an appropriate context menu (presumably start_level=3) in some cases. I guess I'll use a seperate template for these pages.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: [Solved] Menu Structure

Post by Dr.CSS »

You are over thinking this, you can use the same type of menu as this page...

http://multiintech.com/defaultcontent/d ... left.xhtml

Note how the left menu says start_level='2' so it will show all the children of the top active menu item and also note the collapse='1' this is so any 3rd level items wont show till you click on a parent item in the left menu then it's children, 3rd level, will show below it the same if it has 4th level menu items, they won't show till the parent page has been activated/clicked...
Post Reply

Return to “CMSMS Core”