Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » Check if we're not in a certain page

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 841 Views
  • dio5
    Community Member
    501 Posts

    Check if we're not in a certain page Link to this post

    How can I check for certain pages?

    What I want to do is actually:

    <% if !InSection(page-url) %>

    But obviously you can't negate in page templates..

    Maybe I can handle it from in the controller, but how do I check on which page I am from there?

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.