Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

Checking for the current page


Go to End


2 Posts   2176 Views

Avatar
damsel

Community Member, 8 Posts

3 December 2007 at 11:07am

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 :)

Avatar
damsel

Community Member, 8 Posts

3 December 2007 at 11:15am

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