Open mhshinde opened 6 years ago
Unfortunately - due to how the create / edit site dialogs are build by default Alfresco - the constraint in the model is not used to restrict the options. You would have to customise the FreeMarker template for the dialogs themself to remove the options you do not want to provide. Check https://github.com/Acosix/alfresco-site-hierarchy/blob/master/share/src/main/site-webscripts/de/acosix/acosix-site-hierarchy/site-management-customisations/modules/create-site.get.html.ftl#L57 for the create site dialog.
I have removed both of the options from following files,
- siteHierarchyModel.xml
Removed line 75 and 78
<list>
<value>systemDefault</value>
<value>parentMembersAsChildConsumers</value>
</list>
- create-site.get.html.ftl
Edited line 57, removed "none", "childMembersAsParentConsumers" options.
<#list ["systemDefault", "parentMembersAsChildConsumers"] as mode>
- edit-site.get.html.ftl
Edited line 41, removed "none", "childMembersAsParentConsumers" options.
<#list ["systemDefault", "parentMembersAsChildConsumers"] as mode>
And mvn install
it.
Copied relevant .amp and .jar files to alfresco-community.
By removing entries from above three files, I am able to achieve following,
But it has not removed the options from the menu dropdown. I want to disable them in the menu.
Under "Membership Mode" there are a total of four options, I want to disable following options
I did changes in "siteHierarchyModel.xml", I have commented both the options but no change in the list, `
`
So, what am I missing here? Is there an additional step I am not including? Do I need to edit some other properties? I'd be grateful if you could point me in the right direction.