Closed (fixed)
Project:
Sky
Version:
6.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
2 Feb 2009 at 09:23 UTC
Updated:
11 Jul 2009 at 17:04 UTC
Jump to comment: Most recent file
Comments
Comment #1
aimutch commentedSecondary links are not used in this theme.
Comment #2
wvd_vegt commentedHi,
That should not hold you back from rendering them if present (or am i missing something). It's just strange that if you enable them, they do not show up. Thats something else than not liking them or using them
We use the secondary links (located at the top right corner) for login & search links and it looks pretty good at that spot.
Comment #3
prosiktuno commentedcan you show how it's look?
Thx.
Comment #4
wvd_vegt commentedHi,
See the attached picture...
Comment #5
magenbrot commentedHi wvd_vegt,
I also would like to have the secondary menu enabled. I've tried your code but it doesn't work for me. The secondary-links are enabled in the theme configuration. What am I doing wrong?
regards,
Oliver
Comment #6
wvd_vegt commentedHi,
Did you also move some menu items to this menu? (you can verify it by setting the theme to default for a while). Unless you made some typing errors it 'should' work.
For debugging you could also change:
print theme('links', $secondary_links);
into
print 'SECONDARYLINKS';
for a while. It should show up at the top of the screen.
Comment #7
magenbrot commentedI've found my error. I had the source of the secondary links set to primary links on the config page of the menus.
Now the menu is shown. Thank you!
Comment #8
jacineComment #9
agerson commentedI added this to page.tpl.php to get secondery links where I would like them. I think this is be a nice place to have them in the supported theme. At least as an option for those who want them.
I also added this to style.css
Comment #10
jacineComment #11
jacineSecondary links can easily be added via blocks to any region, so I don't see a need to add them manually to the theme, especially because I can't guess which sidebar they should be added too.
Comment #12
magenbrot commentedHI, look at the attached screenshot, this isn't possible with blocks. I like this theme very much, so I'll stay with my optimized 6.x-2. goodbye Jacine.
Comment #13
agerson commentedmagenbrot, #9 should still work in the new version.
Comment #14
Netbuddy commentedIm trying to display a secondary links bar at the top of the page. Everything appears ok, but if you have child items under top level menu items in secondary links, and also have child items under top level menu items in primary links...the primary link child items will not display.
Relevant page.tpl.php code...
Added the following to template-settings.php
'sky_nav_alignment_secondary' => 'center',and...
Also added this to preprocess page..
Top level menu items appear fine in the primary menu, but child items simply do not show...I must be leaving something out? or done too much...dunno.
Comment #15
Netbuddy commentedComment #16
jacineYou can't have both at the same time, because with dropdowns on the menu settings page you need to make the primary menu the same menu for primary and secondary. If you want to show another copy the navigation or any menu for that matter, just use the menu_block module. It will let you create menu blocks and gives you many difference options on how to display them. http://drupal.org/project/menu_block
Also, in case someone else comes across this, the route you were taking to add secondary links is wrong. You would use the method in #9 to add this in page.tpl.php.
Comment #17
jacine