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.

All other Modules /

Discuss all other Modules here.

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

subsite: how to access site definition?


Go to End


1748 Views

Avatar
chadws

Community Member, 9 Posts

28 August 2009 at 4:52am

I am setting up a template to use with the subsite and was wondering how I can access the site name in the subsite definition. I would like to write this in the page header since the template is used on multiple sites it cannot be hard coded. Also, am I correct that I can extend the information stored for the subsite by adding the fields to the file /subsites/code/Subsite.php or will this cause problems?

Thanks!