Get contentUrl value in alfresco javascript
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2021 05:32 PM
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.
- Labels:
-
Alfresco Content Services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2021 02:57 AM
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.
