You need to use damfn, not cmsfn:
https://documentation.magnolia-cms.com/display/DOCS/damfn#damfn-Getlinkforasset
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=27c4716c-1fb2-4e85-a4a4-0d1c4aa7b7f2
---
I get a link, and I get error 404 when I open with that link.
My ftl :
[#assign binaryNode = cmsfn.nodeByPath("binaryNodePath", "workspace")]
[#assign link = cmsfn.link(binaryNode)]
${link!}
Output :
/../jcr:content/TEMPORARY.pdf
--
Context is everything:
http://forum.magnolia-cms.com/forum/t
Have a look at
https://documentation.magnolia-cms.com/display/DOCS/cmsfn#cmsfn-Links
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=27c4716c-1fb2-4e85-a4a4-0d1c4aa7b7f2
For list details, see h