We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36632
    • 202 Posts
    I've used Personalize before in Evo. First time in Revo.

    If a User is logged in they see `yesChunk`.
    If not, they see `noChunk`.

    But Personalize doesn't like instant Registration. I have a Register snippet in my noChunk with activation=`0`. Just need to collect their info before I can show them the yesChunks.

    Is there a better way to handle this? Or can I add a property set to Personalize?
      • 3749
      • 24,544 Posts
      You need to put your code in code tags so we can see it. smiley


      ---------------------------------------------------------------------------------------------------------------
      PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
      MODX info for everyone: http://bobsguides.com/modx.html
        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
        • 36632
        • 202 Posts
        [[!Personalize? &yesChunk=`DownloadVariables` &noChunk=`DownloadRegister`]]


        This code is in one of the site's templates. It works when the User Registers on separate page and comes to the page with this Personalize call.

        It doesn't work when the User starts on the page that contains this Personalize snippet.

        If that doesn't make sense, this is what I want:
        Someone's browsing through various downloadable products. They want to try the Trial version. SO they click the Download Trial version and, because they're not Registered, the Register chunk shows up thanks to Personalize.

        The Register's submittedResourceID is that very page. But Personalize doesn't seem to know that the User just successfully Registered and the Download chunks never display. The Register chunk displays all over again (the email username is appended in the URL, which means the Register was successful).

        Thoughts? [ed. note: ultrasef last edited this post 14 years, 6 months ago.]
          • 3749
          • 24,544 Posts
          Did you try putting the Personalize tag below the register tag on the page?

          The problem is that when the user submits the form, the page is parsed before the user is actually logged in.


          ---------------------------------------------------------------------------------------------------------------
          PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
          MODX info for everyone: http://bobsguides.com/modx.html
            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
            • 36632
            • 202 Posts
            Nope. I have just the Personalize call on that template. I could always put in the content TV and put the Personalize call in the content pane as needed.

            How would what you're suggesting look? Like this?:
            Register chunk
            Personalize call
            ?

              • 3749
              • 24,544 Posts
              Hmm, I'm not sure what I suggested makes sense. It might be simpler to just forward the user to another page after registration that contains a snippet that forwards the user back to the original page.

              That would work for sure.

              Or forward the user to a symlink or weblink that refers to the original page.

              It's not a coincidence that so many sites have a registration form on its own separate page. wink




              ---------------------------------------------------------------------------------------------------------------
              PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
              MODX info for everyone: http://bobsguides.com/modx.html
                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
                • 36632
                • 202 Posts
                A separate page is how I wold like to handle it.

                A thought: a child page with a submittedResourceID of [[UltimateParent]]. And the Parent would have a firstChildRedirect in it.

                Convoluted enough that it might work. :-O