Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is there a way within the interface for this theme (configuration settings) that will allow you to edit the horizontal menu bar? My primary links can be added to this menu bar, but the "home," "primary," and "Drupal" buttons remain the only buttons present on the menu bar. The primary links come down in a dropdown menu from "primary." This is a great theme, by the way! Thanks for porting it.
Comment | File | Size | Author |
---|---|---|---|
#14 | screen_1.png | 32.08 KB | dalin |
#13 | Sans titre 2.jpg | 180.99 KB | patchak |
#12 | primary_menu.diff.txt | 887 bytes | dalin |
Comments
Comment #1
Heine CreditAttribution: Heine commentedNot at the moment; you'll have to edit page.tpl.php.
(as you can see I deleted the Drupal button)
Comment #2
rkerr CreditAttribution: rkerr commentedYeah, I couldn't think of a better way to solve that in 4.6 and retain the dropdowns.
(It was mostly so I could test and make sure the dropdowns work)
What you can do to get one level of menus without dropdowns is to do this:
Now that 4.7 uses the menu system for its links, there is the potential to have the multi-level stuff work properly.
Comment #3
inteja CreditAttribution: inteja commentedI am interested in 4.7 Mollio muli-level drop-down menus. How would this best be accomplished?
I had just thought of doing a recursive foreach as above, but is there another way or is it already planned for the Mollio theme?
Brian.
Comment #4
rkerr CreditAttribution: rkerr commentedThe 4.7 primary/secondary links don't work exactly as I had thought (they only print one level of the menu each without children), but instead what could potentially be done is to add the "primary links" menu to the "header" region instead. Although I have not yet updated the CSS to propery theme that.
Comment #5
yogayak CreditAttribution: yogayak commentedI'm also very intersted in having the horizontal links have drop downs (as on the non Drupal exemples of Mollio)
I'm using Mollio on http://yogayak.com/drupal/ but feel blocked somewhat by not knowing how to make those drop downs work.
Perhaps this was explained here but I'm afraid I'm too much a newbie at Drupal and css to understand clearly.
love and light
Comment #6
rkerr CreditAttribution: rkerr commentedIf you put the "primary links" menu block into the header region of the page, and disable the normal primary/secondary links .. then set all the sub-menus of your "primary links" menu to be expanded, this should work as you want it to.
Comment #7
deanloh CreditAttribution: deanloh commentedRokerr
Can you explain further what you meant by "...disable the normal primary/secondary links"?
Comment #8
deanloh CreditAttribution: deanloh commentedOkay I got it figured out right away. For the benefit of others who got stuck at having the top navigation to show up in 4.7. Here's what you need to do:
Under "administer..."
1. Under "blocks", enable "Primary links", set placement to "header"
2. Go to "menus", add your navigation items under "Primary links"
3. Go to "setting..." then "menus", under "Menu containing primary links" select "No primary links"
4. Make sure under "Menu containing secondary links", "Primary links" is selected
5. Save and look at the top of your page
Comment #9
dalinOk, I'm really confused here. If I repeat the steps above I get my primary links in the html at the end of the header div as expected:
But how exactly is the CSS supposed to style this? The CSS file mentions the id #nav. But shouldn't it be pointing to something like #header ul ???
It looks to me like the CSS hasn't been modified to work with Drupal.
Comment #10
dalinOk, I may have jumped to conclusions with the "It looks to me like the CSS hasn't been modified to work with Drupal." I see that template.php is doing the work to make that #nav, .first, .last ids and classes. But for some reason, my primary links aren't getting the treatment.
I'll have to investigate further.
Comment #11
doeki CreditAttribution: doeki commentedYou'll need to modify the MOllio style.css file to get the nifty 'dropdown' menus to work:
Simply replace all instances of
#nav
with#header .menu
as such:Comment #12
dalinThere's an easier way:
How to configure the top navigation:
- Put the primary links block into the header region.
- Under admin>>menus set sub-menus of the primary links to "expanded".
Do this for one level of menus only. All submenus on the second level
must remain collapsed.
- Under admin>>settings>>menus set
Menu containing primary links: None
Menu containing secondary links: Primary Links
Here's a patch for README.txt to include the more detailed instructions.
Comment #13
patchak CreditAttribution: patchak commentedHi,
I tried the trick that you mentionned, so I installed primary links in the header region, then I changed the primary links to "no primary links" in settings/menus, I also installed 'primary links' in the secondary links location dropdown in the same configuration page...
I added some links to te primary links in the admin/menu page, and the result is not really what I was expecting... What I want is to have each primary link (5-6) to have buttons on the top menu and then users can see the submenus for each...
Check out how it turned out on my test site, is it normal?? Thanks.
** screenshot attached
Comment #14
dalinThis screenshot shows what I get when I followed the instructions in my patch.
Comment #15
inforeto CreditAttribution: inforeto commentedCheck again those steps as it looks primary links aren't being found in secondary links.
I'm not sure why this should be that way but there's related threads:
http://drupal.org/node/63814
http://drupal.org/node/85669