arpowers Posted January 25, 2010 Share Posted January 25, 2010 Hi, I need to test which page I'm on so I can highlight the navigation, the default portal template doesn't highlight the page based on the one you are on. How can I tell which page I'm on using the Smarty Templates? 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted January 25, 2010 Share Posted January 25, 2010 This is how I do this: <li{if $SCRIPT_NAME eq "/index.php"} class="selected"{/if}><a href="index.php">Home</a></li> <li{if $SCRIPT_NAME neq "/index.php" AND $SCRIPT_NAME neq "/contact.php"} class="selected" onmouseover="dropdownmenu(this, event, clientarea_{if $loggedin}ac{else}un{/if}, '');" onmouseout="delayhidemenu();" onclick="window.location='clientarea.php'"{/if}><a href="clientarea.php">Client Area</a></li> <li{if $SCRIPT_NAME eq "/contact.php"} class="selected"{/if}><a href="contact.php">Contact</a></li> 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted January 25, 2010 Share Posted January 25, 2010 You can simply use {$filename} 0 Quote Link to comment Share on other sites More sharing options...
magga Posted January 26, 2010 Share Posted January 26, 2010 Or {$pagetitle}, however sparky's above suggestion is more unique 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.