Quote from: xwisdom at Jul 18, 2006, 08:41 AM
Once you have specified a prefix and a suffix tag then the parseChunk function will only replace those tags that exists.
I can make it so that the parser will auto convert [+ +] into [[+ ]] when the $modx->enableCompatMode property is set to true. When it’s set to false the parser will not parse the old tags.
What do you think?
If that is the solution here is what would need done to the snippets (correct me if I’m wrong)
calls to parseChunk need to be updated to use [[+ ]]
the snippet needs to set $modx->enableCompatMode = true (maybe through parameter setting)
That sounds like a pretty easy fix, that way we can ensure backwards compatibility for people who do not update there placeholders to the new format. Although we could just make it a required change for using the new version of a snippet?? For the future of modx this may be the way to go, more work to get updated to new version but less complicated in the future?
So I’m kind of torn between the two, backwards compatibility would be nice, but we need to weigh that against maintainability and the time that could be spent helping people solve issues with their placeholders.