Here is my situation: My tpl (attached) pulls in the HTML code to create some navigation (lines 26-42). I need the tpl to look at this pulled in HTML code and if a link in the left navigation matches the name of the page it is one, change the HTML code slightly.
Example:
<li><a href=”link1.htm”>Link 1</li>
<li><a href=”link2.htm”>Link 2</li>
<li><a href=”link3.htm”>Link 3</li>
If the page name is link1.htm – then rebuild the link to show this:
<li class=”activenav”>Link 1</li>
<li><a href=”link2.htm”>Link 2</li>
<li><a href=”link3.htm”>Link 3</li>
It is a two step process…pull in the code and then alter it. I have step 1 but am not sure about step 2. Is the tpl the best place to do this? Any suggestions on how to do this?
Thanks!
Melody Brownell
brownell.melody@principal.com