Closed (fixed)
Project:
BlueMasters
Version:
7.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
10 Mar 2011 at 17:12 UTC
Updated:
20 Jul 2011 at 15:03 UTC
Jump to comment: Most recent file
Comments
Comment #1
gtsopour commentednopulse (Full name JeremyM)
I am working on this issue.
Will fillow a comprehensive patch file with all appropriate changes.
menu_tree example
Comment #2
gtsopour commentedComment #3
gtsopour commentedI am working on this issue.
Will follow a comprehensive patch file with all appropriate changes.
But also, you could make the following changes:
1. Remove from div #navigation the "overflow:hidden;" at style.css
2. Change div #navigation in page--front.tpl.php and page.tpl.php with the following code
3. Change style for main navigation links at style.css
Comment #4
gtsopour commentedCSS Multilevel drop-down menus screenshot...
Comment #5
nopulse commentedThanks for the input but I was unsuccessful. I am not a programmer to say the least so I will wait for the proper patch. I followed the steps verbatim but all that happened was the menu disappeared. I tried the steps individually and when I changed the php code the menu disappeared. If I only change the .css #navigation information, the menu styles are not present and the menu is represented as only links with no styles. Any help would be appreciated. I will post my old code below. Thanks for your help.
My current .php
print theme('links__system_main_menu', array('links' => $main_menu, 'attributes' => array('class' => array('links primary-links', 'inline', 'clearfix'))));My current .ccs # navigation
/* PRIMARY MENU */
#navigation ul li{ margin:0px; padding:0px; text-align:center; list-style-image:none; text-align:center; list-style-image:none; display:block; float:left;}
#navigation li a {
padding: 5px 0 0 0;
text-decoration: none;
display:block;
color:#7A8090;
font-size:160%;
font-size:14px;
font-weight:bold;
width:93px;
height:32px;
text-align:center;
}
#navigation li:hover a, #navigation li.active a {
text-decoration:none;
color:#ffffff;
font-size:14px;
-moz-border-radius: 5px 5px 5px 5px;
background-color: #0D0F13;
font-weight:bold;
outline:none;
}
#navigation ul {
margin:0px;
float:right;
}
#navigation ul li {
display: block;
float: left;
border:none;
margin: 0 0 0 0 ;
}
#navigation ul li ul {
left: -999em;
margin: 0;
padding: 0;
position: absolute;
width: 196px;
z-index: 12;
}
Comment #6
gomezsal commentedI'm also interested in adding drop-down menus. Keeping close watch on this!
Comment #7
gtsopour commentedTry to use the following code with menu_tree
instead of your default main_menu printing code
thanks
Comment #8
nopulse commentedMy apologies, I was not clear. When using this php code (the new code)...
$main_menu_tree = menu_tree(variable_get('menu_main_links_source')); print drupal_render($main_menu_tree);It only causes my entire menu to disappear. Thanks again.
Sorry I can't get the div tags to display but I am including them.
Comment #9
gtsopour commentedPleaser try this code:
Menu name ('main-menu') defined hardcoded. Is your menu still disappeared?
Comment #10
nopulse commentedWorked like a charm. Thanks SO MUCH! ¡Muchas Gracias!
Comment #11
gtsopour commentedI can not understand how this happened and you have problem with variable_get('menu_main_links_source'). Could you tell me what do you get with printing this variable?
Your current drupal installation is a drupal 7 upgraded from drupal 6 or a fresh installation?
Comment #12
nopulse commentedWhen I use the code
print variable_get('menu_main_links_source');The menu does NOT appear.
I am using a fresh install of Drupal 7 not and upgrade.
Comment #13
gtsopour commentedFinally could you use the following code and tell me your results?
Thanks
Comment #14
gtsopour commentedDone and commited
Comment #15
nopulse commentedThat code also works just fine. No issues with the menu.
Comment #16
skounis commentedfixed in 7.x-1.1, http://drupal.org/node/1100654
Comment #17
mircmirc commentedSorry to bring this topic back into attention, but using a fresh install of the 7.x-1.1, I'm getting exactly the same problem as the OP. Apart from changing some colors in the CSS, I haven't altered the original files at all, so I have no idea what might be causing this. At first I thought it might have been because I had so many menus that they didn't fit in one row (thought that maybe it's protected somehow from overlapping other menu buttons) - but then I disabled as many as I could in order to make them fit on a single one, and I'm still not getting any drop-down menus.
Searching for "menu" brought me here, I really hope I'm asking in the right place! I realize that this was originally for a previous version, but I'm getting the same exact "symptoms" with this one.
Comment #18
gtsopour commented