View Single Post
  #1  
Old 11-19-2008, 01:39 PM
 
presson83 presson83 is offline
 

Senior Member
  
Join Date: Sep 2008
Posts: 143
 

Default Making Navbar Unique on Each Page

Hi All,

I'm wanting to add an active class to my navbar links. Obviously this class is only applied to the active page's li tag, so I need to be able to change my navbar depending on the page.

I currently have my nav code located in head.tpl which is called from customer/home.tpl. Since all the pages use customer/home.tpl (other than the shopping cart pages which use modules/fast lane checkout/home.tpl), I'm having trouble thinking of a way to make the navbar unique on each page. I'm sure there must be a way with smarty templates, I'm just not very versed in their usage.

Any help with adding an active class to a diff li element depending on the page would be MUCH appreciated!

-Nick
__________________
v 4.1.11, v 4.2
Reply With Quote