Temporarily suspend execution of a snippet

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

1 Like

have a look at:
https://docs.modx.org/current/en/building-sites/tag-syntax

1 Like

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]]
1 Like

Thanks Bruno and Mark this is what I was looking for.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.