私の質問は多かれ少なかれタイトルにあります。データ モデルに新しいデータ型を追加しました。
<type name="moi:montype">
<title>titre type</title>
<parent>cm:content</parent>
<mandatory-aspects>
<aspect>moi:monaspect</aspect>
</mandatory-aspects>
</type>
これは、新しいフィールドを追加した新しい側面を使用しています
<aspect name="moi:monaspect">
<title>titre aspect</title>
<properties>
<property name="moi:monchamp">
<type>d:text</type>
<mandatory>false</mandatory>
</property>
...
</properties>
</aspect>
次に、ファイル share-config-custom.xml を編集して、この新しいフィールドを共有フォームに表示しました。
<config evaluator="node-type" condition="moi:montype">
<forms>
<form>
<field-visibility>
<show id="moi:monchamp"/>
...
</field-visibility>
<appearance>
<field id="moi:monchamp" label="Champ texte" />
...
</appearance>
</form>
</forms>
</config>
それまでは、変更をテストすることができ、新しいフィールドは適切に表示されます。しかし、さらに進んで、たとえば、ログインしているユーザーのグループに応じてフィールドの表示を調整したいと思います。ログインしたユーザーが「特権グループ」の一部である場合、フィールドは表示されます。それ以外の場合は、表示されないか、読み取り専用モードでのみ表示されます。
これができると思いますか?そしてどうやって ?ドキュメントを見ましたが、私の幸せが見つかりません。完全な解決策を求めるのではなく、従うべきヒントを求めます。
ご協力ありがとうございました。