09-19-2017 05:35 PM
We're creating folders in the document library programmatically and would like to show the cm:title property of a node instead of the name in the ui. For the center page it is already done, but how/where would we customize the display of the breadcrumb and the tree on the left?
We looked at /tomcat/webapps/share/components/documentlibrary/tree.js but not sure how to get the title of a node.
09-20-2017 11:45 AM
If you look at that tree.js you'll see a function called _buildTreeNodeUrl. In that function you can see the repo tier web script call that gets invoked to return information about the node and the node's children.
The URL that gets built is something like:
If you look at the response that comes back you'll notice that the title is missing.
So in order to get this to work you'll probably have to extend that web script to add the title to the JSON that comes back. Once you do that, you can extend the Alfresco.DocListTree component with your own that retrieves the title that comes back from the web script.
This will likely be a fairly involved little customization and will require extensive testing to make sure that swapping that out does not have unintended side effects.
09-27-2017 04:54 PM
Thanks! We got the tree working, do you know which js controls the breadcrumb on top?
Explore our Alfresco products with the links below. Use labels to filter content by product module.