I'm using a program that exports a design as a Drupal theme.
The problem is, it seems to be dumping my navigation menu into the section of my page that should be primary links, so I end up having the nav menu in both my sidebar and in the horizontal bar and no primary links.
The program creates these four page templates:
page.tpl.php
page-blog.tpl.php
page-node.tpl.php
page-node-add.tpl.php
In all four of them, in the horizontal bar menu that SHOULD be primary links, I find this:
if (get_drupal_version() >= 6) {
$menu_name = variable_get('menu_default_node_menu', 'primary-links');
$tree = menu_tree_page_data($menu_name);
echo art_menu_tree_output_d6($tree);
} else {
echo art_menu_tree_output_d5(variable_get('menu_primary_menu',0));
}
Whatever this is, it results in the navigation menu, not primary links, to show in that section. I can't understand why. If I try to replace it with a simple "print $primary_links", it doesn't seem to work.
Any ideas?
Comments
It might help if you
It might help if you mentioned the program you are using to generate the theme.
Sorry. Artisteer.
Sorry.
Artisteer.
Visit Administer › Site
Visit Administer › Site building › Menus › Settings (tab)
What is the setting for 'Default menu for content', it is what the tool is using.
I would argue it should be using 'Source for the primary links'.
So I would expect
to read
HA! That did it! You're
HA!
That did it!
You're brilliant!
Thank you!
Gotta keep learning this system...
Not work
I still having the problem. The menu does not show off the submenu on the same page. It works like menu tree when you click the parent then the child will appears then the unrelated menu will not show the child(submenu).
I have replaced the
$menu_name = variable_get('menu_primary_links_source', 'primary-links');
to all tpl.php files but didnt work.
I am using Artisteer 2.
I'm not sure I'm
I'm not sure I'm understanding you.
It sounds like the child menu isn't showing as a drop down menu, is that it? Does it show within Artisteer itself, when you created the theme?
I think what he is saying is
I think what he is saying is the same issue that I find. When you hover over the primary links the drop downs should pop up with the sub links, however it is not doing that except when you are actually on the main links page. For example if I had this as my setup:
Home
Articles
-2009(subitem of Articles)
I actually have to be on the articles page to get the drop down menu. If I am on the home page I do not get it. Anyone know how to fix this?
I think what he is saying is
Just enable the expanded option for all the menu items in primary links