discuss.answer
-
- 24,544 Posts
I don't think this is what you want (
https://docs.modx.com/extras/revo/renderresources), but it might work for you using the &resource property if you use the Template as the Tpl chunk.
Calling process() shouldn't give that error unless your snippet tag is in the resource being processed. In that case, you'll get an infinite loop. IIRC, using process() doesn't really do what you want though.
This might work for you:
https://forums.modx.com/thread/31539/get-processed-resource#dis-post-170611. You could also use cURL to get the rendered output from the URL.
-
- 24 Posts
Thank you, Bob.
How can i mark this thread as answered? Do not see this button.
[ed. note: tester3 last edited this post 6 years, 6 months ago.]
-
- 932 Posts
If you hover over the top right hand corner of the answer you should be able to flag the answer.
https://imgur.com/a/nV1I4
-
- 24,544 Posts
That's strange, you might try a different browser.
I did it for you.