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

Subsites Main site url


Go to End


2 Posts   1601 Views

Avatar
philsbury

Community Member, 2 Posts

20 November 2012 at 10:45pm

Hi,

I'm using the subsites module (or rather a modified version of it!) and am putting my subsites in sub domains, eg:
silverstripe.com - main site
site1.silverstripe.com - sub site

in my theme, I'd like to link back to my main site, dynamically if possible. Is there a function/setting in $Site.Config that stores the main site URL?

Avatar
RuthAdele

Community Member, 21 Posts

12 February 2015 at 7:29pm

I'm trying to do the same thing (to no avail...)
Hoping bumping this up will mean that someone knowledgeable can assist me/us.