右クリックメニューの項目を無効にする方法は?
accessrights.xml設定ファイルで機能を無効にすれば、右クリックメニューから機能を削除できます。
説明
使用しない機能を右クリックメニューから削除したいのですが。
解決法
- TEXTML Administration(TEXTML管理)パースペクティブで、accessrights.xmlファイルをロックします。
- 無効にしたい機能について、属性
hide-when-disabled
を「true」に設定します。 - 機能の
<condition>
要素で、条件が常に「false」であることを確認します。 - accessrights.xmlファイルを解放します。
例えば、共同レビュー機能には4つのメニュー項目があります:CreateReview、CloseReview、SetReviewAsDone、ViewAnnotationsです。条件を無効にする最も簡単な方法は、<users> 要素から、<roles> と<groups> をコメントアウトすることです。以下からメソッドを
<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>
に変更します
<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>