Hi,

I have some primary links in the nav bar which have child-links below them. Normally I would expect these child-links to display as secondary links when the parent primary link is selected - this is supposed to be default drupal behaviour. I can't get this to work with this theme at all. If I switch to some other theme it works fine.

Can you suggest how to fix this.

Thanks

Comments

Stijn Vanhandsaeme’s picture

Version: 6.x-2.2 » 6.x-2.1

same problem here. i thought i had it working once. don't know how. the secondary links do display when you're in that section but not when you're on the front page.
if i move the menu to for instance 'navigation' the menu item does expand well.

New-WebMaster’s picture

Version: 6.x-2.1 » 6.x-2.2

i am having the same problem in 6.x 2.2... it was working fine in version 5 of and then i upgraded my site to 6 and it went south... please fix the problem... i am not sure how to fix the problem since i am not a php person... or a progrmmer...

New-WebMaster’s picture

i think i might have seen the problem...

in framework 5 the maintainer of framework uses the following code

if ($breadcrumb): print $breadcrumb; endif;
if ($mission): print '<div id="mission">'. $mission .'</div>'; endif;
if ($tabs): print '<div id="tabs-wrapper" class="clear-block">'; endif;
if ($title): print '<h2'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h2>'; endif;
if ($tabs): print $tabs .'</div>'; endif;
if (isset($tabs2)): print $tabs2; endif;
if ($help): print $help; endif;
if ($messages): print $messages; endif;
print $content

in framework 6 the maintainer of framework uses the following code

print $breadcrumb;
if ($mission): print '<div id="mission">'. $mission .'</div>'; endif;
if ($tabs): print '<div id="tabs-wrapper" class="clear-block">'; endif;
if ($title): print '<h2'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h2>'; endif;
if ($tabs): print '<ul class="tabs primary">'. $tabs .'</ul></div>'; endif;
if ($tabs2): print '<ul class="tabs secondary">'. $tabs2 .'</ul>'; endif;
if ($show_messages && $messages): print $messages; endif;
print $help;
print $content

if my calculations are correct that might be problem... i will change the code in 6 and let every1 know... if any1 gets it to work b4 me let me know.....

New-WebMaster’s picture

okay that didnt work... any1 else...

andregriffin’s picture

Sorry for the hold up every everyone. I'm looking into this in the next few days.

Zacchaeus 2000’s picture

I'm very new to drupal and am using as a 'user'. I've no programming background. I wanted one of my primary links to have a child link. The relationship shows up at the Primary Links page but not on the Primary Link itself. I assumed the parent-child would work similarly to the Main Menu links but it's not working at all. Anyway to fix this from a non-programming background?

andregriffin’s picture

Status: Active » Fixed

Ok, Framework 2.3, which is set to release in about a week, will fully support Dynamic Persistent Menu. Then will allow secondary links to be shown upon hovering over the primary link.

However, to do this, you must first go to Admin>Site Building>Menus then go to the settings tab at the top. The source for secondary links must be set to 'Primary Links' also. This essentially bypasses the real secondary links menu, and instead uses the hierarchy set within Primary Links. You must set your new 'Secondary Links' under the 'Primary Links' menu by going to 'Edit' on each item and changing the parent element to the primary link you wish for it to be under. In Drupal 6, you can simply drag your desired 'Secondary Links' to the right a bit to nest it under a 'Primary Link'

This basic functionality should also work without the Dynamic Persistent Menu module and on all current versions of framework.
http://d6.andregriffin.com/node/22

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Erik Sebesta’s picture

Title: Expanded primary links not showing ad secondary link » Expanded primary links not showing submenu

For those like me who were searching for issue resolution for submenu not showing instead of secondary link not showing. Hope this brings you to this thread which solves the issue.

Erik Sebesta’s picture

Title: Expanded primary links not showing submenu » Expanded primary links not showing secondary links aka submenu

included submenu in title of thread

megandal’s picture

I've got the same problem. It may be theme-related. For example the primary links expand when I use the Acquia Marina theme, but they do not expand when I switch to the Garland theme.

Naga’s picture

Hello friends ,
I have primary links on my Drupal site . When I open the site in some broswers like Internet google chrome , the site works fine , and primary links as well as secomdar links are visible . But when I open the site in windows internet explorer , both all primary links and secondary links are totally invisible .
Does any one have an idea on how to fix this ?
Thanks ,

RaulMuroc’s picture

I agree to Erik Sebest, more theme-related problem than anything else. With some themes it expandes, with some others not.

It relies on *.tpl.php code and It should be solved by overriding it on template.tpl.php file.

rodmumbai’s picture

Title: Expanded primary links not showing secondary links aka submenu » Some primary links are expanding but some are not

I am working on intranet and my site is not online.. so i cnt show it to nyone. my prob is dat i have included 5 primary links in my site out which only 3 are expandable and rest 2 viz. Home and HR are not expanding to show their submenu.I have enabled all menu items and their submenus. The secordary links in enu settings is set to primary links evn then m getting this prob. please help its urgent

andregriffin’s picture

rodmumbai,

Are you setting your menu with the block-system, or letting the primary links render the default way? Try going to the block administration page and placing the Main Menu block into the Navigation region. If you have already done that, I would suggest using a module like Menu Block, Nice Menus, or Dynamic Persistent Menu

rodmumbai’s picture

I have used nice menus. I cant lay them in navigation menu otherwise their children are so much that when their parent is expanded, they interfere with the footer( go behind footer links and are not clickable). I have let primary links to go their default way and have not used blocks. I need them in header region but when if I create a block and put it in header region, it is not visible. I am using marinelli (giodina) theme.

rodmumbai’s picture

There is one more prob. I want to create a custom region above breadcrumb. Theme I am using is giordini (marinelli) which includes left right header content and footer region. But these are not visible in the giordini.info file. like i have left region.. but i am not able to see region[left]= left-sidebar in the .info file. No region is declared. When i tried to declare my custom region and displayed it in page.tpl file, then all region on the website went invisible with the error that the regions(that are predefined) are invalid.

andregriffin’s picture

Well, this is an issue ticket for use of the Framework theme, and I am not familiar in customizing the theme you're talking about. I would suggest asking in the Theme Development Forum or in the issue tracker of the theme you are using. I would suggest using the menu block that Drupal provides by default to display your menu because it expands by default. Or look for further information here Drupal 7 theming basics