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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

All other Modules /

Discuss all other Modules here.

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

Mobile module login form using main theme

Go to End

3 Posts   1549 Views


Community Member, 12 Posts

29 November 2010 at 10:33am

Hi all,
The site I'm developing is using a custom theme. At the same time I am also using the new mobile module to develop a customized mobile theme for the site.
This is working great so far! Except for one thing.

I have a need to allow users to log into the site even when they are using a mobile device. So, when I display the login form on the mobile device, it is using the main site's theme and not the mobile site's theme.. and I have no idea why.

I've created a template like I would when customizing any other theme.. but it is always using the main site's theme.
Any ideas why this would be?

Thanks in advance!!


Forum Moderator, 922 Posts

29 November 2010 at 7:37pm

Edited: 29/11/2010 7:43pm

Try adding this to the bottom of your mysite/_config.php file:

Object::add_extension('Security', 'MobileSiteControllerExtension');

There may be undesirable side-effects by doing this, as I haven't tested it.

However, give it a go and see if it works for you!



Community Member, 12 Posts

29 November 2010 at 7:43pm

Thanks Sean!
That was it :)