I’ve written a little snippet and I want to have a page documenting it. But when I demonstrate the usage, modx picks it up and runs it! How do I stop this only in this location?
-
MODX Staff
- 12,272 Posts
Write the snippet out like this:
[<!-- -->[Snippet?param=`foo`]<!-- -->]
When HMTL rendering engines do their thing the empty comments will disappear on display, but won’t match the pattern matching of the parser.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me