Hi, I want to add a custom menu i have created called "the person" and later another menu called "the business" as an expandable sub menu to "primary links". I tried adding the menu as a new menu from the "menus" page, but then i couldn't get it expandable/colapsable and i could move it by placing weight on it, but not where i wanted it, which is under primary links. Is this something i'll have to have a completely different menu making module for or can you do it with the existing module? I want to be able to expand menus by clicking the parent link so as to avoid clutter. Did that make sence? Any help much appreciated. /Krister
On May 19, 2007, at 7:00 AM, Krister Ekstrom wrote:
I want to add a custom menu i have created called "the person" and later another menu called "the business" as an expandable sub menu to "primary links".
Here's what you can do to have a submenus to your primary links: On the settings tab of your menu admin screen, change the "Menu containing secondary links:" to Primary links. What this does is change how your Secondary menu that is in your theme template is generated. Instead of being a separate menu, it will now display 2nd level items from your primary menu.
Now create your secondary menu selections as menu items in your Primary menu, and indicate their parent terms when you do it. So if you have your menu set up like this:
Primary Menu
Fruit - Apples - Oranges - Pears Vegetables - Asparagus - Okra - Cabbage Breads - Pumpernickel - Rye - Challah
...then when you lick on Fruit, for example, your secondary menu array will display Apples, Oranges, Pears, but when you click on Vegetables, that secondary menu will change to display Asparagus, Okra, Cabbage
Hope this helps!
Laura
On Sat, 2007-05-19 at 07:38 -0600, Laura Scott wrote:
Now create your secondary menu selections as menu items in your Primary menu, and indicate their parent terms when you do it. So
Hmm, let me see if i understand this correctly. I should delete the menu i have created and instead create menu items in the "primary links" menu... and add more menu items and have them pointing to the item i created as an item in the primary links menu... Is that right, at least somewhat? /Krister
On May 19, 2007, at 8:13 AM, Krister Ekstrom wrote:
On Sat, 2007-05-19 at 07:38 -0600, Laura Scott wrote:
Now create your secondary menu selections as menu items in your Primary menu, and indicate their parent terms when you do it. So
Hmm, let me see if i understand this correctly. I should delete the menu i have created and instead create menu items in the "primary links" menu... and add more menu items and have them pointing to the item i created as an item in the primary links menu... Is that right, at least somewhat?
Yes. Please note that this approach will work only for 2 levels, primary and secondary. And as Jason Flatt notes, if the secondary links show up in the wrong place, you may need to edit your page.tpl.php file and stylesheet accordingly.
Laura
On Saturday May 19 2007 6:38 am, Laura Scott wrote:
Here's what you can do to have a submenus to your primary links: On the settings tab of your menu admin screen, change the "Menu containing secondary links:" to Primary links. What this does is change how your Secondary menu that is in your theme template is generated. Instead of being a separate menu, it will now display 2nd level items from your primary menu.
Now create your secondary menu selections as menu items in your Primary menu, and indicate their parent terms when you do it. So if you have your menu set up like this:
I just went back and carefully re-read this post (rather than a cursory overview, while in the middle of other things). I didn't even know that functionality existed in Drupal. That's pretty slick. I don't actually have a use for it, but it's nice to know it's there if ever the time comes.
On Saturday May 19 2007 6:00 am, Krister Ekstrom wrote:
Hi, I want to add a custom menu i have created called "the person" and later another menu called "the business" as an expandable sub menu to "primary links". I tried adding the menu as a new menu from the "menus" page, but then i couldn't get it expandable/colapsable
Primary links and Secondary links operate differently than other menus. Unless they are shown as a block, they do not expand, even when set to.
and i could move it by placing weight on it, but not where i wanted it, which is under primary links.
If you are using the Garland theme, you can enable the Secondary links, and they will show up beneath the Primary links, otherwise, you probably need to modify their locations by editing your page.tpl.php file.
Is this something i'll have to have a completely different menu making module for or can you do it with the existing module? I want to be able to expand menus by clicking the parent link so as to avoid clutter. Did that make sence? Any help much appreciated. /Krister