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 VirtualPage uses wrong theme


Go to End


969 Views

Avatar
Bob Martin

Community Member, 5 Posts

16 December 2011 at 5:04am

hey there,

I'm using the Subsite module in order to separate a desktop web and a web for mobile devices. I created a theme for each site, so far so good. The themes are assigned correctly and the sites work perfectly side by side.

Now I created a Subsites Virtual Page to pull some content from my desktop subsite to the mobile subsite. But when I open that page on the mobile web, the whole page is rendered with the desktop theme, and I just cannot work out why.

If I try the other direction, thus pulling content from the mobile web to the desktop web, everything works as expected.

Versions: SS 2.4.6, Subsites from trunk, furthermore dataobject_manager and some other. I did't have a chance to try with less modules yet, but maybe the solution is much more simple?

I also wrote a simple VirtualCalendarPage myself to pull events from event_calender, wich works just fine.

Martin