Best way to change menu if on current page?

From: Date: Mon, 07 Nov 2005 06:18:19 +0000
Subject: Best way to change menu if on current page?
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-13152@lists.php.net to get a copy of this message
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!

« previous php.smarty.general (#13152) next »