I succeed the integration of my custom documentLibrary on the default documentLibrary page as follow:
- I defined my custom documentLibrary as a new component Alfresco
- I added a new Surf region to the default documentlibrary template "documentlibrary.ftl":
(the ligne:<@region id="custom-doclist" scope="template" protected=true /> under the documentlist region)
- I tied my custom component to my Surf region
But now, I have other problems:
- The tree is duplicated several times
- I think that I have also problems using the filter on my custom-documentlist.js file located in {alfresco-home}\tomcat\webapps\share\components\documentlibrary
N.B: I left all the code I found in the file "documentlist.js" creating and using the filter. More precisely in the methods onReady, onHistoryManagerReady, onChangeFilter, onFilterChanged and -updateDocList.
- In addition, I can't get the nodeType of the current node and consequently I can't display my component following a condition. Secondly, is it possible to do this through the webscript "custom-documentlist.get." located in {alfresco-home}\tomcat\webapps\share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\documentlibrary :?:
thanks,