Menu Issue Topic is solved

General project discussion. NOT for help questions.
shandog

Menu Issue

Post by shandog »

I am trying to create a page containing a menu that lists all of the children of a specific parent. For instance, I have a top level page called team, then under team are subpages with each team members personal page. On the menu, I would like to list all the team members only, nothing else. I am unable to find a pre-created menu that does this. Does anyone have a menu created that will accomplish this?
Thanks
Shannon
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Menu Issue

Post by Dr.CSS »

if you look thru the Menu Manager Help you will find parameters the menus take, under Extensions » Modules... these can be put on the menu for that pages template...

Parameters

    * (optional) template="bulletmenu.tpl" - The template to use for displaying the menu. Templates will come from the database templates unless the template name ends with .tpl, in which case it will come from a file in the MenuManager templates directory
    * (optional) start_page="home" - Starts the menu displaying at the given start_page and showing that element and it's children only. Takes a page alias.
    * (optional) start_element="1.2" - Starts the menu displaying at the given start_element and showing that element and it's children only. Takes a hierarchy position (e.g. 5.1.2).
    * (optional) start_level="2" - This option will have the menu only display items starting a the given level. An easy example would be if you had one menu on the page with number_of_levels='1'. Then as a second menu, you have start_level='2'. Now, your second menu will show items based on what is selected in the first menu.
    * (optional) show_root_siblings="1" - This option only becomes useful if start_element or start_page are used. It basically will display the siblings along side of the selected start_page/element.
    * (optional) number_of_levels="1" - This setting will only allow the menu to only display a certain number of levels deep.
    * (optional) items="contact,home" - Use this item to select a list of pages that this menu should display. The value should be a list of page aliases separated with commas.
    * (optional) collapse="1" - Turn on (set to 1) to have the menu hide items not related to the current selected page.
    * (optional) lang="en_US" - Parameter is used to specify what language to use for display on the frontend. Not all modules support or need this.
shandog

Re: Menu Issue

Post by shandog »

I appreciate the pointer, I did find some helpful hints there, but being somewhat of a novice here, I am not sure how to structure the menu code to do this. The help does point out some parameters, but I am having a hard time trying to figure out how to inject them into a current template. My hopes is to simply show the menu items with nothing fancy, just a separating each item. I was hoping someone might have already done this.
Thanks again,
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Menu Issue

Post by Dr.CSS »

have you a link to something you like the look of?..
have you seen my site?... it's the Link part of the Got Link...

http://www.multiintech.com/
shandog

Re: Menu Issue

Post by shandog »

Here is a link to the page I am working on. You can see the nav on the left is what I would like to fix, and list only the other pages that exist in this section.
http://www.admedialaw.com/cms/index.php?page=test_page
shandog

Re: Menu Issue

Post by shandog »

Andy, this works well, thank you. Another question, it displays the parent as a top level bullet item and the siblings as sub level bullet items. I would like to only display the siblings and no bullets. Can anyone tell me which files I need to edit to be able to strip the bullets out and remove the top level link?
Thanks,
Shannon
shandog

Re: Menu Issue

Post by shandog »

I have included a link to the page in question, you can see from the left nav, I am trying to remove the bullets, etc, but I am not sure where these styles are being applied from, so I am unsure what to edit.

http://www.admedialaw.com/cms/index.php ... endrickson
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Menu Issue

Post by Dr.CSS »

#container ul{list-style:none}

hate to say this but you should try and not use table based layout...
got a bunch of error on validation...
shandog

Re: Menu Issue

Post by shandog »

I would like to ditch the tables, and even have templates that do, but unfortunately I need to place dynamic images outside of the text area, so I am not sure how I can accomplish that. Instead, I am creating a layout where the client can go in and manually change the image.
shandog

Re: Menu Issue

Post by shandog »

I used your reference above, which removed the bullets, but I would like to remove the list all together and separate each menu item with a
More investigating.....
shandog

Re: Menu Issue

Post by shandog »

Sorry for the many posts, my basic question is, if I use the following string to invoke a menu on my page:

{menu start_page="Team" show_root_siblings="0"}

What file would I edit to change the way the menu appears. I made changes to the css files attached to my template, but that did not seem to do anything. Is one of the menu.tpl files being used?

Any help would be appreciated.

Shannon
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Menu Issue

Post by Dr.CSS »

look thru the template to find a tag like ..

{cms_module module='menumanager' template='ellnav-accessible.tpl' number_of_levels='1'}

or some such.. if you goto the Menu Manager you can copy what ever Menu Template it says in your tag and then you will have something to modify then you add it in the tag like so..

{cms_module module='menumanager' template='nameofnewtemplate' number_of_levels='1'}

notice the absence of .tpl these are not used on modified templates...

the menu templates look weird at first, the best way to see what to change,(read my way) is to stat putting 1, 2, 3, 4, etc. in front and back of the tags to see where you want to put your changes.. is fun the page has a bunch of 1's 2's 3's all over but it gives you an idea where things come from in the template...
shandog

Re: Menu Issue

Post by shandog »

Thanks,
That actually loops me back to my first post :-). Unfortunately I am a novice coder so I am having a hard time figuring out how to write one of those menus.

Thanks for all your help, I will keep plugging away
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Menu Issue

Post by Dr.CSS »

which one are you using and how do you want it to spit it out?
shandog

Re: Menu Issue

Post by shandog »

I am trying to tweak the list_children menu to work like a list_siblings menu, where it will only show the siblings separated by a , rather than using bullets. etc.

The way I have it set up is I have a Team section, then under that I have the team members. On the team members page, I only want to list the members, not the whole navigation. If you look at http://www.admedialaw.com/cms/index.php ... ina_s_loza you will see that I have managed to show just the siblings, but it is formatted in the bullet/list style. I need to know how to go in an format this.

Any ideas?

Here is the top level page that lists the children, which is exactly what I am trying to accomplish on the sub level pages, which would then make the children the siblings.

http://www.admedialaw.com/cms/index.php?page=team
Last edited by shandog on Sat Jul 15, 2006 10:59 pm, edited 1 time in total.
Post Reply

Return to “General Discussion”