-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable some options from "Membership Link Mode" list #7
Comments
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. |
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,
<aspect name="aco6sh:childSite"> <parent>aco6sh:hierarchySite</parent> <properties> <property name="aco6sh:autoMembershipMode"> <type>d:text</type> <protected>true</protected> <mandatory>true</mandatory> <default>systemDefault</default> <index enabled="false" /> <constraints> <constraint name="aco6sh:autoMembershipModes" type="LIST"> <parameter name="allowedValues"> <list> <!-- <value>none</value> --> <value>systemDefault</value> <!-- <value>parentMembersAsChildConsumers</value> --> <value>childMembersAsParentConsumers</value> </list> </parameter> </constraint> </constraints> </property> </properties> </aspect>
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.
The text was updated successfully, but these errors were encountered: