We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9995
    • 1,613 Posts
    I'd like to change some tpl's text like lgnforgotpasstpl.chunk.tpl / lgnregisterformtpl.chunk.tpl, lgnforgotpasssenttpl.chunk.tpl

    On FTP i found the chunks but when i change them nothing happens.
    /core/components/login/elements/chunks/
    How do i have to call them so i can add them to my chunklist?


    Edit:

    Managed to change the: [ ForgotPassword? &resetResourceId=`3` &tpl=`lgn-ForgotPassTpl` ]
    atm. looking for the other calls id like to change..
    [ed. note: fourroses666 last edited this post 14 years, 8 months ago.]
      Evolution user, I like the back-end speed and simplicity smiley
      • 1778
      • 659 Posts
      Hello
      It's not recommanded to change directly the tpl's files provided with add-ons (you'll lose your changes at the next upgrade of the add-on)
      If you want to customize your own tpls you have to write your own chunk (myForgotPaswordTpl for example) with the mark up you want.
      You can also use your own form for Register or Login. Save it as a chunk and specify it like this (using my own chunk form for Login and calling it "myLoginFormTpl"


      [[!Login? 
         &loginResourceId=`57` 
         &loginTpl=`myLoginFormTpl`]]
      


      myLoginFormTpl is a chunk with my login form in it, specify it as a property in the Login call is the way to use it...

      Hope this helps
      Cheers
        • 9995
        • 1,613 Posts
        seems to be pritty oke:

        [[!ForgotPassword? 
        &tpl=`lgn-ForgotPassTpl` 
        &emailTpl=`lgn-Email` 
        &sentTpl=`lgn-Send`
        &emailSubject=`Nieuw wachtwoord aanvraag` 
        &resetResourceId=`259`
        ]]



        All i now need is the error message TPL call.
        At id 259 (the reset page) I somehow don't see the login link anymore sad

        [[!ResetPassword? &loginResourceId=`2`]]

          Evolution user, I like the back-end speed and simplicity smiley
          • 1778
          • 659 Posts
          If you want to change the messages you can set them in the lexicon (system settings --> lexicon then spacename : login topic : forgot password ) the grid will show you the errors messages used by ForgotPassword, you can change them directly in the grid, it's done... It's the same for all topics for Login (login,Login, Login.Register etc etc)

          Cheers
            • 9995
            • 1,613 Posts
            Thanks! didnt use topic at first.
              Evolution user, I like the back-end speed and simplicity smiley