By welovedesign on
Hi
I have a basic primary menu
home | about us | contact
I also have a custom menu called Our Regions
Edinburgh
-Regional Welcome
-local News
-Local Events
Glasgow
-Regional Welcome
-local News
-Local Events
Regional welcome and the Area (e.g Glasgow) menu link to the same node.
Now I want all the sub menu Items to display the title of the parent (either Glasgow or Edinburgh)
Using the code below this gives the current page title (Regional Welcome, local News, Local Events)
$menuTrail = menu_get_active_trail("node/$node->nid");
if ($menuTrail[1]) {
print $menuTrail[1]["title"];
}
If I change, the value to $menuTrail[0] I get "Home" as the title, can anyone help me as I need to get Glasgow or Edinburgh as the title for all the sub pages.
Thanks,
H.