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

SubsitesVirtualPage using the contents original theme, not the subiste theme


Go to End


3 Posts   625 Views

Avatar
kindleman.com.au

Community Member, 70 Posts

19 October 2011 at 5:55pm

Hi

I have silverstripe set up with subsites. When i create a new subsite and add in a subsitesvirtual page the page is showing on the subsite with the theme from the site it comes from , rather than the current site i am on.

That has to be a bug right? hard to imagine this is how its supposed to work.

What can i do to fix?

thanks,
will

Avatar
kindleman.com.au

Community Member, 70 Posts

21 October 2011 at 2:31pm

Bump.

Would be awesome if someone could let me know if this is expected behaviour or a bug or whatever. Its a bit of a show-stopper, obviously.

Thanks,
Will

Avatar
kindleman.com.au

Community Member, 70 Posts

21 October 2011 at 4:58pm

thanks to pyromanik on irc, i tracked the line in the core that is overwriting the subsites
/saphire/core/control/contentController.php line 127
SSViewer::set_theme($config->Theme);

I have commented that out and everything is ok. Well, except i can't set the main site theme via the cms, have to do it in the config or the site has no templates, buts thats bareable.

Would be better to fx the module i know.

w