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.
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>`
]]
-
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.