Closed (works as designed)
Project:
Acquia Marina
Version:
6.x-2.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Dec 2010 at 04:53 UTC
Updated:
21 Feb 2012 at 04:51 UTC
I don't think I'm misunderstanding anything, but I can't seem to get the block of secondary links to display in the second sidebar. I've got secondary links enabled, and configured the source to be primary links, so the children of the active primary link will display in the second sidebar. The secondary links display as expected in the footer, but not in the sidebar even though I've double checked the configuration of the block is to display on every page, in the secondary sidebar region.
Can anyone think of what I'm missing?
Comments
Comment #1
drublue commentedI'm having exactly the same problem, using the Starterkit.
Set the secondary links source to primary links, which has been populated with a few items.
The primary links looks alright when I put the block to the left sidebar, but secondary links (which now should be populated by the primary links content) doesn't show up whatsoever.
The page.tpl.php doesn't show any secondary_links variable, so I'm assuming that's why the secondary_links block doesn't get rendered.
But where and how to tweak the page.tpl.php file, to make it render the secondary_links??
Comment #2
ediblecities commentedAlso having same issue. Have tried setting above.
Am able to show/hide primary links in sidebar but not secondary links, no matter what the secondary links settings are, as far as I can see.
I'd like to make this change without modifying the code, so I can experiment with different themes.
cheers
Comment #3
safetypinI'm not sure that this is a zen issue, I can't seem to get it to work for any other default theme either...
Comment #4
safetypinWell, I'm not sure if this is the recommended way, but since drupal's secondary links block doesn't work the way I expected, I copied the template "region-sidebar.tpl.php" from the zen core templates and renamed it "region-sidebar-second.tpl.php" and put it in my sub-theme's template directory. Then cut the section of code from the footer are that displays the secondary links and pasted it into the sidebar-second template. Seems to be working.
Comment #5
alynner commentedI'm having the same problem but idlewilder your solution isn't even working for me, it doesn't seem to pick up region-sidebar-first.tpl.php for me at all, I've tried deleting the cache and everything. Seems weird that this block just doesn't work how it is supposed to.
I had a look at menu.inc - function menu_tree() and it seems that static $menu_output[secondary-links] is set but empty even though it shouldn't be. I don't really know what this means, but hopefully someone out there can help??
alynner
Comment #6
captblarney commentedHaving the same problem. I have place the 'Secondary Links' block in the fist sidebar region. When I set the source of secondary links to 'Primary Links', the children of primary links are displayed in the footer, but the secondary links block does not appear. When a menu item is added directly to secondary links, the block will appear with the added menu item, but not with the children of the primary as desired. This does not appear to be a Zen issue as the same thing happens with the default theme. Suggestions?
edit:
Seems to be similar problem here:
http://drupal.org/node/557982
Comment #7
captblarney commentedThis worked for me.
http://drupal.org/node/180786
Comment #8
komal.savla commentedYou can try out the following steps to display the secondary links on the active primary links page :
1) Create the primary menus and secondary menus . And in the secondary menu, set the secondary links source to its corresponding primary menu link.
2) Add a new block and add the following code inside the body of the block
3) Select the input filter of the body as PHP code.
3)And then Enable the block in any region u want.
Thanks
Comment #9
smooshy commentedThanks, Komal.savla. Your solution worked for me.
Comment #10
komal.savla commentedHi,
So Can this issue be now marked as closed?
Comment #11
safetypinI guess I'd like to know if it's possible for the secondary menu block to be made to automatically display the children of the active primary menu item, but since we have at least a couple of functional workarounds, this seems pretty academic. I'd say: go ahead and close it. I'm sure there are more important things for you to work on.
Comment #12
pinoloI don't think that breaking a core behavior (the ability to use the "secondary links" block as contextual navigation block following primary links structure) is "academic". Confirmed in 6.x-2.1
Comment #13
din_rocks commentedThanks komal, i did it for Acquia marina, and it works !!!
komal rocks.. :)
Comment #14
goody815 commentedclosing this issue. this is not a theme related issue as it is a core functionality request. komal.savla did post a solution/workaround in # 8.
Comment #15
Poverello commentedThis solution works, thank you!
Comment #16
ravi.khetri commentedThis solution works fine, thank you.....