Jump to:

10930 Posts in 2613 Topics by 1810 members

All other Modules

SilverStripe Forums » All other Modules » Mobile module login form using main theme

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 1025 Views
  • mapes911
    Avatar
    Community Member
    12 Posts

    Mobile module login form using main theme Link to this post

    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!!

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Mobile module login form using main theme Link to this post

    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

  • mapes911
    Avatar
    Community Member
    12 Posts

    Re: Mobile module login form using main theme Link to this post

    Thanks Sean!
    That was it

    Cheers
    Allan

    1025 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.