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.

Themes /

Discuss SilverStripe Themes.

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

Creating themed directories?


Go to End


1534 Views

Avatar
HeartlandTech

Community Member, 17 Posts

4 February 2012 at 8:43am

I want to do something like this:

/dir1
--- home
--- about us
--- something
/dir2
--- home
--- about us
--- something

I want to theme each "folder" for a particular branch. Any ideas on how to do a conditional statement to get the top most parent for any particular segment?