Vertical menu request

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
1dMN

Vertical menu request

Post by 1dMN »

Hi all.
I did not ask nothing during last two months, but now I need your precious help, guys!

Well, this is my situation: I have my 3-column layout; into "left" I want to put some vertical menu items, the content into "central" column, and some others menu items "into" right col.
And then my question: I use the same menu (EllNav or bulletmenu, I will decide) into left and right; how can I associate a menu item to left insted of right?
For example, if I put {cms_module module='EllNav'} into left and right, I see the same items; then how can I resolve it by using only one template?
Perhaps by manipulating php source code of EllNav or bulletmenu, but I don't want to do it.

Please help me.
Thank you so much.
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Vertical menu request

Post by tsw »

you want to have different menu on the right side?

there are many options

1) you can use menu list on the right

{cms_module module='menumanager' items="contact,home"} which would show pages contact and home

2) you can show subitems in right bar

for the left menu use
{cms_module module='menumanager' number_of_levels="1"}
to show only first level links

and for right side
{cms_module module='menumanager' start_level="2"}

3) or you can use
{cms_module module='menumanager' start_element="1.2"}
to start the right side menu from item 1.2

and for styling:
You already have wrappers for both menus so you can use css to style them

if you have div id=left you use css to style the left menu like

div#left ul li {
color:red;
}

and for the right side

div#right ul li {
color:green;
}

Hope this helps
1dMN

Re: Vertical menu request

Post by 1dMN »

tsw wrote: you want to have different menu on the right side?

there are many options

1) you can use menu list on the right

{cms_module module='menumanager' items="contact,home"} which would show pages contact and home

2) you can show subitems in right bar

for the left menu use
{cms_module module='menumanager' number_of_levels="1"}
to show only first level links

and for right side
{cms_module module='menumanager' start_level="2"}

3) or you can use
{cms_module module='menumanager' start_element="1.2"}
to start the right side menu from item 1.2

and for styling:
You already have wrappers for both menus so you can use css to style them

if you have div id=left you use css to style the left menu like

div#left ul li {
color:red;
}

and for the right side

div#right ul li {
color:green;
}

Hope this helps
Thank you tsw.
I think I'll use bulletmenu with start_element, because the site I'm developing is under 0.10.4 and this version does not support MenuManager, I suppose.
If you have any other ideas, please tell me about them.
Thank you again.
Bye
1dMN

Re: Vertical menu request

Post by 1dMN »

Sorry tsw, and anyone else who wants to help me.

I use bulletmenu with i.e. {bulletmenu start_element='1'} into left column, while {bulletmenu start_element='4'} into right.

Well, now I see only menu items from 4 to the last one on the right, and it's ok... but I see all menu items, from 1 to the last one, and not from 1 to 3 or 3.x on the left!
How can I set the left menu items up to 3, or however up to the last one before the start_element on the right?!?

I hope my english is not so bad and you can help me again.
Best regards.
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Vertical menu request

Post by tsw »

If bulletmenu works like menumanagaer (which you can also use as it has bulletmenu template which works pretty much like old bulletmenu) you can use option number_of_levels="3" which would only show first three levels of the menu.

You can see all of the options in extensions -> modules -> menumanager -> help link

hope this helps
1dMN

Re: Vertical menu request

Post by 1dMN »

Thank you again tsw.
There is a problem yet. MenuManager don't works on my 0.10.4, and I have to use bulletmenu or PHPlayers, I suppose.

Then, number_of_levels='3' means that I want to show only three levels of menu, but don't prevent to stop showing of levels I want to hide in left column.
Yes, I'd have to upgrade to 0.12.2, but my know-how about new versions is too little.

There is another possibility to resolve this problem without upgrading? Perhaps by using another menu like EllNav?
I don't know.
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Vertical menu request

Post by tsw »

You really should upgrade.

please take a look at http://forum.cmsmadesimple.org/index.ph ... 532.0.html

when you use {cms_module module='menumanager' number_of_levels='3'} on right side navigation it will stop showing links at level3 it wont affect left menu in anyway


"normal" use for this is to create top menu for first level links (number_of_levels='1') and then have different submenu with start_level='2'
1dMN

Re: Vertical menu request

Post by 1dMN »

Hi tsw.
I follow your suggest, and I have installed 0.12.2 version on my host.
Then, as you can see here, I attached a new template (called "Bulletmenu Vert 3 col" with new layout and style) to the home page.
Well, I use {cms_module module='MenuManager' collapse='1' number_of_levels='2'} for the left menu, and {cms_module module='MenuManager' collapse='1' start_element='3'} for the right one.
You can see the right menu starts from third element, but the left one doesn't stop to the second!
My problem is the same again: how can I stop the left menu and restart from next item to the right, so the menu item "Menus/Navigation systems" and the items below is shown ONLY on the right, and NOT on the left?
Thank you very much.
Last edited by 1dMN on Tue May 16, 2006 8:39 am, edited 1 time in total.
1dMN

Re: Vertical menu request

Post by 1dMN »

1dMN wrote: Hi tsw.
I follow your suggest, and I have installed 0.12.2 version on my host.
Then, as you can see here, I attached a new template (called "Bulletmenu Vert 3 col" with new layout and style) to the home page.
Well, I use {cms_module module='MenuManager' collapse='1' number_of_levels='2'} for the left menu, and {cms_module module='MenuManager' collapse='1' start_element='3'} for the right one.
You can see the right menu starts from third element, but the left one doesn't stop to the second!
My problem is the same again: how can I stop the left menu and restart from next item to the right, so the menu item "Menus/Navigation systems" and the items below is shown ONLY on the right, and NOT on the left?
Thank you very much.
Sorry,
I forgot to input the layout I created by modifying an existing one:

[...omissis...]
     
     
         Left Nav
         {cms_module module='MenuManager' collapse='1' number_of_levels='2'}
     
     
     

     
     
         {title}
         {content}


         


^ Top

         
            {cms_selflink dir="previous"}

            {cms_selflink dir="next"}
         


     
     
 

     
     
         Right Nav
         {cms_module module='MenuManager' start_element='3'}
     
     
     
[...omissis...]

and here is the stylesheet I edited for:

/* NAV BAR ON THE LEFT AND ANOTHER NAV BAR ON THE RIGHT OF ONE COLUMN OF CONTENT */
    div#content {
        position: relative;
        width: 100%;
        margin: 1.5em 0 2em 0;
        padding: 0;
        text-align: left;
    }
    div#menu_left {
        float: left;
        width: 25%;
        display: inline;
    }
    div#main {
        float: left;
        width: 45%;
        display: inline;
        margin-left: 2%;
    }
    div#menu_right {
        float: right;
        width: 24%;
        display: inline;
        padding: 0 1% 0 2%;
    }

/* END CONTENT */

Please, guys, I really need your help!
Locked

Return to “CMSMS Core”