This is pretty hard to explain…
In modX Revolution, I’m trying to get the symlink’s “Symlink” field in the template to use it in a snippet (the id the symlink is pointing at).
The suggestion when I mouseover that field is [[*content]], but when using that I get the actual content of the page I’m pointing at with the symlink.
Any suggestions? The documentation doesn’t help, and I’ve been google-ing it for an hour now.
AFAIK, this is the expected behavior for a symlink.
I just fired up a little test on my testing server and here is the result:
getResource (install it from Package Management) returns no symlink:
If 6 is the id of the symlink pointing to a page with the id of 10:
[[!getResources? &resources=6]]will return:
Please note that the content key is empty.
User lkossis on MODx Forums suggests another approach: using a snippet to get the
[[*content]]value.And in your template:
The credit goes to lkossis on MODx Forums.
http://modxcms.com/forums/index.php/topic,61784.msg351101.html#msg351101