Hello,
I am creating a theme based on an xhtml template.
I copied the xhtml into page.tpl.php and used bluemarine's page.tpl.php as a base from which to find the php code to place into my page.tpl.php to populate the content.
I have a problem with the menus......
I have the following menu structure:
Primary menus
A
B
C
Secondary menus
A.1, A.2, A.3
B.1, B.2, B.3
B.1, B.2, B.3
When I click on "A", secondary menus A.1, A.2, A.3 appear beautifully.
This works also with "B" and "C".
But when I click on one of the secondary menus, the secondary menu itself disappears!
The behaviour I would like is quite simple -
If I select "A", "A1", "A2" or "A3" that the whole secondary menu for "A" remains visible. Similar of course for "B" and "C". How can this be achieved.
It works for the bluemarine theme but stops working when the code is transferred across to the xhtml.
The only difference is the order that the lines
if (isset($secondary_links)) {
print theme('links', $secondary_links, array('class' =>'links', 'id' => 'subnavlist'))
}
if (isset($primary_links)) {
print theme('links', $primary_links, array('class' =>'links', 'id' => 'navlist'))
}
are in a different order in the new theme due to where the menus need to be output in the xhtml.
Does this make a difference?