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.
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.
Thanks! We got the tree working, do you know which js controls the breadcrumb on top?
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.