Sometime ago I stumbled on a way to temporarily suspend execution of a snippet. If I recall correctly something was added to the snippet call after the firss set of [[. Any help would be appreciated.
Thanks
Sometime ago I stumbled on a way to temporarily suspend execution of a snippet. If I recall correctly something was added to the snippet call after the firss set of [[. Any help would be appreciated.
Thanks
have a look at:
https://docs.modx.org/current/en/building-sites/tag-syntax
The dash -
is what you’re looking for. That’s comments out a tag, halting processing. Not just for snippets either, none of these will produce any output:
[[-getResources]]
[[-$myChunk]]
[[-%lexicon]]
Thanks Bruno and Mark this is what I was looking for.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.