I have a couple different departments on my website that have lists of definitions on their sites. I've been using getResources for this, with a resource for each definition. But then I showed them how to use symLinks to avoid having to create redundant definition resources on the different sites. Seemed like a good idea, but the getResources calls that listed the content now started just listing the symlink field (the ID of the reference resource).
I couldn't find a native way in getResources to get the content from the target resource of a symlink, so I made a copy of getResources and added some logic that does it.
What's the best way to share this for consideration in a future version of getResources?
I will try to post to github in the near future. opengeek's solution looks like it would work well too though. I wonder though about calling a snippet repeatedly in the tpl chunk vs. doing the logic right in the getResources call.
-
- 61 Posts
I'm also doing a project right now which could make use of this. Are you happy to share it with me? If so I'll PM you some details.
Feel free to send me a message.