Forums / Templates, Stylesheets, Page Layout / How can I get my CSS navigation tabs to work for groups of similar pages?

How can I get my CSS navigation tabs to work for groups of similar pages?

Locked

Started by sifuhall on 27 Nov 2009, 6:57 PM · Views: 1,466

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
27 Nov 2009, 6:57 PM
#1
sifuhall avatar

sifuhall

New Zenner

Join Date:
May 2008
Posts:
4
Plugin Contributions:
0

How can I get my CSS navigation tabs to work for groups of similar pages?

I'm adding navigation tabs to the top and I have a different css class to indicate the current tab, inactive tabs, etc.

My question is the following is there an easy way to tell which "group" should be highlighted by the page url?

For example, if the user is on the page

/index.php?main_page=account

I will want to have the "My Account" tab highlighted as the active tab.

Also for the pages:
/index.php?main_page=account_edit
/index.php?main_page=address_book
/index.php?main_page=account_password
/index.php?main_page=account_notifications

The breadcrumb correctly identifies these pages as belonging under the My Account page.

How can I get the same info for the active tab?