We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1778
    • 659 Posts
    Hello
    One step forward with Login...
    I'm using UpdateProfile with more or less success ...
    Profile is well updated but the fields I specify in &excludeExtended are saved as extended, and the submit link (name='login-updprof-btn' as default to prevent any problem) is saved as extentedField too...

    my call
    [[!UpdateProfile? &excludeExtended=`login-updprof-btn,address2`
        &placeholderPrefix=`udp`
    ]]
    


    Any clue ? Thx
      • 3749
      • 24,544 Posts
      Have you tried adding the prefix to the fields in the &excludeExtended property?
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 1778
        • 659 Posts
        Hello BobRay,
        Yes I did... I think I tried all the combinations (with prefix, without prefix, prefixing my fields in the form and not prefixing them....) Same thing
        - 1 - the submit link is saved as extented field
        - 2 - the excludeExtented fiels are saved as extented fields too


        Just as example regarding the rtfm (http://rtfm.modx.com/display/ADDON/Login.UpdateProfile) we have in the form :

        [[+login.update_success:if=`[[+login.update_success]]`:is=`1`:then=`[[%login.profile_updated? &namespace=`login` &topic=`updateprofile`]]`]]
        

        ... to display a success message when updateProfile is submitted with success.
        In my case it does not display the default message, but if i specify one "hard coded" (in the ":then=`my message`), mine is well shown...
        I've read somewhere (don't remember where exactly) there were significant changes about lexicons... may be not update in all the sub-parts of Login.. especially UpdateProfile...

        Maybe these Login version (1.7.1) running on Revo 2.2.0-rc3 (from git), is a bit buggy ? I have also a problem to send email via custom postHook given in the rtfm http://rtfm.modx.com/display/ADDON/Login.Using+Pre+and+Post+Hooks that can't send emails (see my previous post https://forums.modx.com/thread/73005/register-posthook-email-to-admin-doesn-t-work-for-me#dis-post-405789)

        Cheers
          • 3749
          • 24,544 Posts
          My guess is that the properties are not available at the time the conditional modifier is evaluated.

          A custom snippet is probably a better choice. Can you explain in more detail what you are trying to do?
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 1778
            • 659 Posts
            Yep you're probably right,
            I'll try with a postHook to achieve this part... It's not really a problem (all works fine) just not very clean to save some extentedFields that have no interest as they are (like the submit button ^_^)

            For instance I'm more stuck by the problem I have with the custom postHook for register as the given example in the rtfm doesn't work for me (and it's more important to have it working fine than save or not some extra extentedFields in the user profile ^_^)