Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Checking for the current 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: 1571 Views
  • damsel
    Avatar
    Community Member
    8 Posts

    Checking for the current page Link to this post

    How would I do a conditional to check and see if the current page is the home page? I have some content that needs to only be on that page. Thank you

  • damsel
    Avatar
    Community Member
    8 Posts

    Re: Checking for the current page Link to this post

    Never mind!!!! I found it. <% if InSection(page-url) %>

    1571 Views
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.