Jump to content

V6: Getting the current parent variable?


benFF

Recommended Posts

Sorry I don't know a better way to word this.

 

Basically, I want to make the current "sections" navbar link have a special class, this way I can style it differently.

 

For example, if on the Client Area homepage, the "Home" link in the navbar will have an extra class, or if viewing an invoice, the "Billing" menu will have a special class.

 

I have no issues with writing the conditional for that (I just compare against the $item->getName()), but I just don't know what the main variable is to compare against?

 

The best I could find was the $breadcrumbs variable, but that has so many pages to compare against, I'm hoping there is something easier!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated