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.

Themes /

Discuss SilverStripe Themes.

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

Creating themed directories?


Reply


590 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?