Calling the inner tag uncached (with the exclamation point), delays its processing. That means the return value of the inner snippet won’t be available at the time the outer tag needs it.
Well, you can, but it doesn’t always work the way you think it will.
Keep in mind that it’s usually faster and more reliable to write a custom snippet to do what you want. You can also use $modx->runSnippet() inside a snippet to run an other snippet and use the return value.
This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.