Hi Team,
I want to set Simple View as by default view in document library on site creation.
For that i have made changes in documentlist.js like below:
viewRendererName: "simple", but that didn't worked.
Can anyone please suggest what are the other changes are required ?
Thanks,
Hardik
Hi Hardik,
You need to set "defaultViewId" as simple which is property of "defaultViewConfig" aspect.
You can create rule on Sites folder and capture event of site-creation and add aspect.
You can create policy which capture site creation event and in that policy you can set default view.
Ex.
Map<QName, Serializable> viewProp = new HashMap<QName, Serializable>(); viewProp.put(ApplicationModel.PROP_DEFAULT_VIEW_ID, "simple"); nodeService.addAspect(folderNodeRef, ApplicationModel.ASPECT_DEFAULT_VIEW_CONFIG, viewProp);
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.