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.

All other Modules /

Discuss all other Modules here.

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

SubsitesVirtualPage using the contents original theme, not the subiste theme


Reply


3 Posts   343 Views

Avatar
kindlemanwill

Community Member, 68 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
kindlemanwill

Community Member, 68 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
kindlemanwill

Community Member, 68 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