We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32963
    • 1,732 Posts
    Hello Everyone,

    I’m having a lot of fun with the new content manager object ($cms) It’s simple and very powerful. I know you’ll all love it as it’s very modular (kinda), supports recesurive calls or nested tags and a little faster than before.

    Looks more work needs to be done but here’s what working thus far:

    [[%language]]
    [[*contentfield]]
    [[*#contentfield]]
    [[+placeholder]]
    [[++systemsetting]]
    [[~pageid]]
    [[^specialtags]] - q,qt,p,t,date,time
    and soon...
    [[$template]]
    [[@Event]]

    The [[%language]] tag is very cool. It works with the currently loaded dictionary!


    Remember it’s not yet finished so don’t expect much as yet but here’s what the new parser looks like.


      xWisdom
      www.xwisdomhtml.com
      The fear of the Lord is the beginning of wisdom:
      MODx Co-Founder - Create and do more with less.
      • 32963
      • 1,732 Posts
      Another cool thing that I like about the parser is that it support multi-line tag syntax.

      [[Widget?
      &xml=`
      <contact>
      <name>Mary Joe</name>
      <address>Internet Ave</address>
      <phone>1-800-332-1234</phone>
      <email>[email protected]</phone>
      </contact>`
      ]]
        xWisdom
        www.xwisdomhtml.com
        The fear of the Lord is the beginning of wisdom:
        MODx Co-Founder - Create and do more with less.
        • 22303 MODX Staff
        • 10,725 Posts
        Great stuff Raymond. This looks much slimmer and trimmer. Now we need to define the new API to go with it, since we have the luxury of deprecating a whole set of legacy functions and maintaining backwards compat. I really want to focus on making this not only a great content management API, but a true PHP application framework, based on solid OO patterns and constructs (at least as they make sense without degrading performance), that makes it easy for power users to access and manipulate the data objects they need to, without confusing the average user.