We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36926
    • 701 Posts
    Hi,

    It’s been a while since i’ve used webloginPE, but i want to use a custom template for the login, but for some reason my chunk doesn’t get used when the type=`simple`. It’s fine if i use register.

    So this call:
    [!WebLoginPE? &type=`simple` &registerTpl=`login-chnk` &liHomeId=`33` !]

    Doesn’t display html form the chucnk login-chnk

    But if i change the type to register it works fine. I need to use simple as I want the forgotten password functionality which doesn’t seem to work on the simple type.

    Any ideas?

    Thanks

    Ben
      • 3707
      • 241 Posts
      Simple is the default type, Have you tried the call without stating the type parameter?
        • 36926
        • 701 Posts
        Quote from: bob1000 at Mar 24, 2011, 10:01 AM

        Simple is the default type, Have you tried the call without stating the type parameter?

        Hey Bob1000 thanks for the reply, yeah i’ve tried with and without. Both seem to ignore the &registerTpl chunk.

        Thanks

        Ben
        • The &registerTpl is for the registration form. For the login form it’s &loginFormTpl. It all depends on what service is being requested. The default is the login service; the register service is invoked if the user clicks the Register link in the login form.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 12630
            • 22 Posts
            I have a similar problem.

            [!WebLoginPE? &type=`simple` &activateTpl=`activate` &liHomeId=`86` &regHomeId=`89`&profileHomeId=`87` &loHomeId=`90` !]


            This returns the default login template and not the chunk activate.

            any ideas?
              • 36926
              • 701 Posts
              Quote from: sottwell at Mar 24, 2011, 10:32 PM

              The &registerTpl is for the registration form. For the login form it’s &loginFormTpl. It all depends on what service is being requested. The default is the login service; the register service is invoked if the user clicks the Register link in the login form.

              Thanks Susan, that was it.


              icom, you’ll need to also use: &loginFormTpl I think the activate template is only used when the reset password link is clicked.