Jessn Posted March 5, 2009 Share Posted March 5, 2009 I'm new to smarty and while I like it a lot, I don't quite have the hang of it. I'm wondering if there's a way to hide a div if the user is on a particular page. The order.php page specifically. Something like "if is page 'order' then hide. else show" Is that possible? 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted March 6, 2009 Share Posted March 6, 2009 You can do it something like: {if $pagetitle == 'order'}{/if} 0 Quote Link to comment Share on other sites More sharing options...
Jessn Posted March 6, 2009 Author Share Posted March 6, 2009 Thanks for the reply! I appreciate the help. What you wrote makes sense, but for some reason I couldn't make it work. Perhaps it's the pagetitle part? I'm trying to hide a login box in the sidebar while people are on the order forms. And not all of the order pages are called simply order.php but more complex urls like "order.php?step=2&pid=6" 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted March 6, 2009 Share Posted March 6, 2009 Try "Shopping Cart" 0 Quote Link to comment Share on other sites More sharing options...
Jessn Posted March 6, 2009 Author Share Posted March 6, 2009 Great. Thanks! 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.