By i25 on
I've just installed and configured Nice Menus. I have a placement question. I'm using/modifying a custom theme. In Admin > Site Building > Blocks, here are my settings:
Primary links are set to <none>.
Secondary links are set to <left sidebar>.
Navigation links are set to <left sidebar>.
I am, however, using Primary links (Admin > Site Building > Menus), which are showing up at the top, in the site's header.
What block do I need to assign my Nice Menus to? I have only the default blocks: Left sidebar, Right sidebar, content, footer, custom.
Thanks for your help!
Edited by: VeryMisunderstood; added code tags so the useage of <SOMETEXT> can be read
Comments
Anyone have any suggestions?
Anyone have any suggestions?
Hi i25, I'm not sure what you
Hi i25,
I'm not sure what you are asking. To your question: "What block do I need to assign my Nice Menus to?" I say, you can assign it to any available block area you want. Where are you trying to apply it to? Is that what you are having problems with?
Also, knowing what theme you are using would probably help our communication, even if you have modified it some, just so long as the layout is pretty much the same.
~Lindsay
Hi Lindsay, I want to assign
Hi Lindsay,
I want to assign the Nice Menus to whatever block the the menu at the top of my site is. I guess I need to figure out what block is being used for the menu. It's not the primary or secondary, as the setting in my first post show.
See the site here: www.mwebdev.com/nt. I'm referring the the menu in the upper left.
i25, Thanks for linking your
i25,
Thanks for linking your site, it gives me a better idea of what the html is like, and more information bout your theme.
The menu that you want to make a Nice Menu isn't a block and by default Nice Menus can't do anything for you there. But! When you have nice menus installed you can edit your page.tpl.php and directly call your primary links from anywhere on your page. For more informations see this page: http://drupal.org/node/210441
Good luck!
~Lindsay
Ok, So it is possible. Here
Ok,
So it is possible. Here is the code in my page.tpl.php file having to do with primary links. How would I alter this code using the code in the article you linked to?
if (isset($primary_links)) :print theme('links', $primary_links, array('class' => 'links primary-links'))endif;You should try
To start I suggest you try putting this php print line on your page somewhere, so you know what it's going to do.
In the end, I think you are going to want to delete (or comment out) your line that says:
and replace it with the first code snipit I pasted above.
Sorry about all the guess work, I do this kind of stuff you are doing a lot, but it's always just trial and error for me. I'm not really a php coder or anything. Though I was able to successfully swap Nice Menus in on my own theme, it did not retain the theme look. You might try replacing the calls to primary links in your code to keep the theme look.
For instance:
Or something like that.
Good luck!
Ok,So I've replaced my php
Ok,
So I've replaced my php code above with:
So now my previous primary links have disappeared (kind of expected that). What are my next steps? In my Block setup, what block do I set Nice Menu to? I've set the source menu tree to Primary Links, but what do I select for the region?
Or is there another hover/dropdown menu that would work better in this case?
Thanks.
Any further
Any further thoughts/suggestions? Please see my last update. Thanks.