We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4195
    • 398 Posts
    I’ve decided to skip version numbering 1.5.1 and jump to 2.0 for the next version number.
    Why? I did some intensive recoding to take care of the recurring issue of different scenario’s of snippet+placeholder nesting and order..

    PHx 2.0 will be faster, smarter and more MODx attuned. Nothing will change on the user side of things, nor on the developer side it’s purely upgraded on how it’s working together with MODx. PHx sits on top of the MODx document parser and takes over the tag detection (allows for the recursion/nesting and the PHx modifiers), it does not handle execution of the tags (these are all passed to the MODx document parser, i did not recreate any function of the MODx parser)

    To summarize:

    - 2.0 will be release later today or tomorrow
    - 2.0 will process faster (lousy ms, but still worth mentioning)
    - 2.0 will take over MODx tag detection but doesn’t replace the MODx parser, it only extends it to use modifiers and the conditionals
    - 2.0 can log (when enabled) to the event manager every action it performs so specific information about the replacement steps per page is available (use it only for debugging your template problems)


      Armand Pondman
      MODx Coding Team
      :: Jot :: PHx
      • 25663 MODX Staff
      • 12,272 Posts
      Very nice Armand! laugh
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 4195
        • 398 Posts
        PHx 2.0 Beta is here!

        updating is highly recommended!

        This version even fixes some native MODx parser glitches like the snippet-in-snippet caching issue.
        You can also specify if you want to log events to the manager (use it only when debugging templates).

        Don’t let the BETA in the name fool you.. i have tested it and found no weird behaviour, it even became faster by some code changes I applied. However I do need people (pref. the people who posted in this thread earlier) to try and implement different scenarios (nesting and such) before i make this final. I want all the feedback you can give me (even if you think it’s a stupid question) smiley


          Armand Pondman
          MODx Coding Team
          :: Jot :: PHx
          • 4195
          • 398 Posts
          ... and we have a rev 3:

          Download PHx 2.0 Beta Rev 3 here!
            Armand Pondman
            MODx Coding Team
            :: Jot :: PHx
            • 33033
            • 43 Posts
            My modifiers did not work until I added &phxdebug=Log events;int;0 &phxmaxpass=Max. Passes;int;50 in configuration, might want to add that to the install notes that you have to put that in instead of being optional. Other than that great work as always wink
              • 4195
              • 398 Posts
              PHx 2.0 (final) is here!

              - Some compatibility changes when PHx is used locally by a snippet (currently only Jot and Maxigallery do this)
              - Further improved tag handling

              Please upgrade... and remember, your feedback is important! smiley
                Armand Pondman
                MODx Coding Team
                :: Jot :: PHx
                • 23050
                • 1,842 Posts
                Hi there,

                I’ve just installed 2.0. Very nice plugin which makes non-developper life quite simple wink

                Anyway, when I activate the plugin, GetField snippet and FirstChildRedirect don’t seem to work.

                GetField doesn’t show up anything and FirstChildRedirect doesn’t redirect.

                Any known issue about that ? Thx wink
                  • 11975
                  • 2,542 Posts
                  Hi bs,

                  Here are the logs of the parsed document using firstChildRedirect:


                  Pass 1

                  1 [21:41:50] MODx TV/DV: content
                  2 [21:41:50] |--- Value = ’[!FirstChildRedirect!]
                  ’
                  Pass 2

                  3 [21:41:50] MODx Snippet -> uncached: FirstChildRedirect
                  4 [21:41:50] |--- Returns:

                    Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                    • 4195
                    • 398 Posts
                    don’t you get redirected? it’s normal that FirstChildRedirect returns nothing.
                      Armand Pondman
                      MODx Coding Team
                      :: Jot :: PHx
                      • 11975
                      • 2,542 Posts
                      In stead of the redirection we got a blank / empty page.

                      :-)
                        Made with MODx : [url=http://www.copadel.com]copadel, fruits et l

                      This discussion is closed to further replies. Keep calm and carry on.