We launched new forums in March 2019—
join us there
.
In a hurry for help with your website?
Get Help Now!
Back to MODX.com
Forums
Docs
Revo Issues
Blog
My Forums
General
General Support
Search
Snippet in template variable
80 Posts
tat2d
Reply #1,
16 years, 10 months ago
Can I use a snippet instead of a chunk in a template variable? For instance:
Tips == @SNIPPET tips||No Tips == @SNIPPET notips
If that’s not the way to do it, how do I do it? I can’t use a chunk, because the code uses PHP, which chunks don’t support.
Teaching myself MODx
80 Posts
tat2d
Reply #2,
16 years, 9 months ago
Ok, I figured out how to do it. I had to create a chunk to use for the template variable, and in the chunk, I added the snippet call.
Teaching myself MODx