By slingeraap on
Hello,
I have a primary links menu, where each primary menu item has s different background.
I'm using this for it:
$alias = drupal_get_path_alias($_GET['q']);
For some primary links, I have secondary links. But when I display a secondary link, then no background is shown anymore. That's normal, because I didn't specify a background for the secondary links. But I want to use the background that is given to the parent node of the secondary links content.
Any help on this very much appreciated!
Comments
Well, I helped myself: I the
Well, I helped myself: I the database I'm searching (with php in my page.tpl) for the friendly url of the parent (primary) link of secondary links. Then I put the friendly primary URL alias in the body style, and with CSS I give that body style the right colors and style.