As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
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:
http://localhost:8080/alfresco/s/slingshot/doclib/treenode/site/some-site-id/documentLibrary?perms=false&children=t…
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?