Hello,
I am working on making a snippet with the ablity to use a chunk as a template and then replace the placeholders in the chunk with document or template variables (like many of the standard snippets have). I’ve looked through NewsListing the most but I started to get a little dizzy.
Can anyone point me in the right direction to include this functionality in my snippet? Is there a standard way of doing this - it seems it would make a nice helper class if there isn’t one already.
Thanks,
Yehosef
-
MODX Staff
- 12,272 Posts
Take a peek at Wayfinder for an ideal example of that in action.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me