Jump to content

If is page, hide content?


Jessn

Recommended Posts

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?

Link to comment
Share on other sites

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"

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated