Search code examples
alfrescoalfresco-share

Change the default view renderer for specific folder type


I wonder if its possible in any way to change the default view-renderer in the document-library of share based on the type of folder the user enters.

The default view overall seems to be set in the constructor of documentlist.js and the option "viewRendererName". How can I change this based on folder type?

In addition to Tahirs links below I would like to add the following blogpost as well which gives a good overview on how this can be done using a module evaluator:

http://experiencewithalfresco.blogspot.dk/2012/06/type-subcomponent-evaluator.html


Solution

  • Well, after some digging around we found this feature (undocumented?). In applicationModel.xml there is this aspect named app:defaultViewConfig, apply that to your type and set the property app:defaultViewId to the id of the view you want as default and you are all done (as it seems after our first tests)