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

Mobile module login form using main theme


Go to End


3 Posts   1937 Views

Avatar
mapes911

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 Security_login.ss 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!!

Avatar
Sean

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!

Cheers,
Sean

Avatar
mapes911

Community Member, 12 Posts

29 November 2010 at 7:43pm

Thanks Sean!
That was it :)

Cheers
Allan