-
MODX Staff
- 12,272 Posts
Interesting question. If it’s resource intensive, I’d say no. But bs would be one to ask about this since he’s made an XML parser for PHP4 for Replix.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
Actually, there is no XML parser involved. Its a simple regex.
Sounds ok to me. I like the idea of using a single chunk but I’m also of the opinion that you should still allow usings to use mutiple chunks if they want to.
I can imagine that I might have a site with 2 news pages where all but one of the chunks used were the same; having a single XML for each page would mean duplicating stuff.
I still think that I’d like this sort of facility at the MODx level such that &xmlParameters would work on ANY snippet and let you load in parameters from a chunk.
Whether at the MODx level or at the Ditto, if you do this I’d also like &xmlFileParameters or whatever so that I could load in the XML from a file rather than a chunk. That would be great for development.
Personally, I like the full template vs the parameters because then you see the actual output of the snippet in blocks (which sections repeat and whatnot). This would make it easier to theme.
I’ve got everything else in Ditto 1.1 finished so this is the only thing delaying its release.
(Ditto 1.1 has many major changes in parameters that keep it from being 1.0.3)