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

    i use the updateProfile Snippet from the Login Extra. Everything works fine but if i would like to use output filter at an placeholder the output stays empty.

    Here is how i used it in my template

    [[!UpdateProfile]]
    [[+settings.showExpertregister:is=`false`:then=`selected`:else=``]]
    


    I Tried several output-filter :replace , :nl2br, … or :eq… nothing works.

    Any ideas?

    This question has been answered by stefan79w. See the first response.

      • 4172
      • 5,888 Posts
      did you try uncached?

      [[!+settings.showExpertregister:is=`false`:then=`selected`:else=``]]

        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 45766
        • 78 Posts
        Yes. If I try to use the placeholder uncached in the best case nothing happened. Worst case is that the website doesn't render completely.
          • 4172
          • 5,888 Posts
          the placeholder alone is showing anything?
          [[+settings.showExpertregister]]
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 45766
            • 78 Posts
            Yes. Everything works fine till the moment I use outputdilter.
            Ah. Snippets also doesn't work - tested with phpthumbof and the user picture
              • 45766
              • 78 Posts
              If i try to use the [[!Profile]] snippet too and use the placeholders from it output filter doesn't work too for its placeholders user.photo …

              If i only try to use the Profile Snippet the output filter for the placeholders are working fine.

              any ideas?
                • 4172
                • 5,888 Posts
                do outputfilters work anywhere else on your page?
                  -------------------------------

                  you can buy me a beer, if you like MIGX

                  http://webcmsolutions.de/migx.html

                  Thanks!
                  • 45766
                  • 78 Posts
                  Yes, except if i use updateProfile.

                  I took an empty template and put just that code in it.
                  [[!UpdateProfile]]
                  [[+settings.showExpertregister]] // [[+settings.showExpertregister:is=`show`:then=`selected`]]
                  
                  <!-- check if output filter still working with other stuff -->
                  [[*id]] // [[*id:is=`6`:then=`The id is 6`]]
                  


                  Result

                  show //
                  6 // The id is 6
                  



                  If i took the Profile snippet instead

                  [[!Profile? &user=`[[+modx.user.id]]` &prefix=`user.`]]
                  [[!+user.settings.showExpertregister]] // [[!+user.settings.showExpertregister:is=`show`:then=`show it`]]
                  
                  [[!+user.photo:isnot=``:then=`yeah Bild ist da`]]
                  


                  the Result is fine

                  show // show it
                  yeah Bild ist da
                  
                    • 45766
                    • 78 Posts
                    And the modx error log is empty
                      • 45766
                      • 78 Posts
                      Ok. New Page > empty template > uncached calls seems to work. Will try again with the original page and give Feedback :/