[SMARTY] Best way to change menu if on current page?

Karl Timmermann <[email protected]>
Newsgroups gmane.comp.php.smarty.general
Message-ID <[email protected]>
Hi all,

I have a nav bar with 4 links. Right now, I assign the 4 links  
(titles and url) to a smarty var named "topmenu", and in the  
template, I use a {section} loop to display them. First of all, is  
the section loop appropriate for this use, or should I use something  
else? Second, I want the link to be a different color, and not be a  
link if the user is on that page. How should I do this?

Also, should I even be defining the links in PHP? I had to for  
another menu on the same page because the links come from a database.

Thanks!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.