How can I disable items in the right-click menu?

You can remove features from the right-click menu by disabling them in the accessrights.xml configuration file.

Description

We would like to remove features that are not used from the right-click menu.

Solution

  1. In the TEXTML Administration perspective, lock the accessrights.xml file.
  2. For the feature that you want to disable, set the attribute hide-when-disabled to true.
  3. In the <condition> element for the feature, make sure that the conditions are always false.
  4. Release the accessrights.xml file.
For example, the Collaborative Review feature has four menu items: CreateReview, CloseReview, SetReviewAsDone and ViewAnnotations. In order to disable the condition, the easiest way is to comment out the <roles> and <groups> from the <users> element. Change the method from:
<method name="CreateReview" type="front-end" multiselect-disabled="true" hide-when-disabled="true">
		<!-- determines if a notification email should be sent when this action is taken -->
		<notify enabled="false"/>
		<!-- To be enabled or runnable the condition set must return true -->
		<!-- possible operator are any (One of the condition must match)-->
		<conditionset operator="any">
			<condition>
				<!-- Object on which action is taken -->
				<current>
					<type name="map">
						<statuses>
							<status>Authoring:*</status>
						</statuses>
					</type>
				</current>
				<!-- Action user must be in this list -->
				<users>
					<roles>
						<role name="Writer"/>
					</roles>
					<groups>
						<group name="System Administrators"/>
					</groups>
				</users>
			</condition>
		</conditionset>
to
<method name="CreateReview" type="front-end" multiselect-disabled="true" hide-when-disabled="true">
		<!-- determines if a notification email should be sent when this action is taken -->
		<notify enabled="false"/>
		<!-- To be enabled or runnable the condition set must return true -->
		<!-- possible operator are any (One of the condition must match)-->
		<conditionset operator="any">
			<condition>
				<!-- Object on which action is taken -->
				<current>
					<type name="map">
						<statuses>
							<status>Authoring:*</status>
						</statuses>
					</type>
				</current>
				<!-- Action user must be in this list -->
				<users>
					<!--<roles>
						<role name="Writer"/>
					</roles>
					<groups>
						<group name="System Administrators"/>
					</groups>-->
				</users>
			</condition>
		</conditionset>