Hello Community Members,
Can anybody suggest if it is possible to fetch contentURL of node in alfresco javascript?
Most of the properties of nodes are accessible in alfresco javascript(repo side) but not the contentURL.
I know the hard way where we can create spring bean & expose the function of that in js to get what we need but I don't have that much time to do development.
Thanks in advance.
If you use classpath-stored JavaScript or the JavaScript console, you can use the JavaScript-Java Interop capabilities to access the NodeService/ContentService beans, obtain the content data / ContentReader of a node, and access its content URL details. You can find an example on how to access the NodeService in a Gist of mine.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.