We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 791
    • 46 Posts
    I have a sidebar login in a chunk with the following call:

    [!WebLoginPE? &loginFormTpl=`WLPEsidebarLogin` &registerTpl=`WLPEregister` &regHomeId=`49` &successTpl=`WLPEloginSuccessTemplate` &profileHomeId=`50` &liHomeId=`47` &regSuccessId=`54` &messageTpl=`WLPEmessage`!]


    I have a registration page (ID 49) with the following call:

    [!WebLoginPE? &type=`register` &groups=`xbundle` &regType=`instant` &notify=`[email protected]` &registerTpl=`WLPEregister` &tosChunk=`tosChunk` &regRequired=`1` !]


    which still has the sidebar present on the page.

    When I fail to fill in all the fields correctly in the registration form and submit, it shows a duplicate of the registration form in the sidebar (along with the original registration form again in the main content area), and no error message, despite having [+wlpe.message+] at the head of the registration form template and a chunk called WLPEmessage, and containing

    <div id="wlpeMessage">
    <p>[+wlpe.message.text+]</p>
    </div>


    above the content in the main template.

    If I click to Register in either the menu or in the sidebar form using the register button it loads the register form in the main content area, with the sidebar login remaining as it was. It’s only if I don’t complete the form correctly that the duplicate form appears.

    I’m sure I’m missing something simple here, but I can’t see what it is. Is there anyone out there who can set me straight?

    Thanks all in advance.
      Learning a little more each day.
      • 28033
      • 925 Posts
      Known bug. It can’t be fixed unless someone with better PHP knowledge, or Scotty, fixes it. x_x
        My Snippets
        -> PopUpChunk v1.0
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        The workaround would be to have the sidebar login block in a TV, with a textarea input type, and the default value being the entire login block. Then on the login document, simply empty the TV so it’s not outputting anything for that page, or edit it on that document to put something else there for that page.
          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