2

次のプロパティでメールを検索できるように、share-config-custom.xml を変更しようとしています。

           <!-- cm:emailed aspect -->
           <show id="cm:originator" />
           <show id="cm:addressee" />
           <show id="cm:addressees" />
           <show id="cm:sentdate" />
           <show id="cm:subjectline" />

これは私の share-config-custom.xml です:

    <config evaluator="model-type" condition="cm:content">
    <forms> 
        <form label="Mails">
            <field-visibility>
               <show id="cm:originator" />
               <show id="cm:addressee" />
               <show id="cm:addressees" />
               <show id="cm:sentdate" />
               <show id="cm:subjectline" />
            </field-visibility>
        </form>
    </forms>
   </config>

  <config evaluator="string-compare" condition="AdvancedSearch">
  <advanced-search>
     <!-- Forms for the advanced search type list -->
     <forms>
        <!--
           The 'form' config element contains the name of the model type
           of the form to display.

           The element supports the following optional attributes:
              id = form id, the id of "search" will be assumed if not set
              label = label text to display - defaults to model type if not set
              labelId = I18N message id of label text to display
              description = description text to display
              descriptionId = I18N message id of description text to display
        -->
    <form labelId="Mails" descriptionId="Search for Mails">cm:content</form>
     </forms>
  </advanced-search>

そして、それは機能しません。aspectnode-type代わりにを試しmodel-typeました。force="true"、 ...の多くの組み合わせを使用しましたが、for-mode="view"それでも機能しませんでした。検索フォームでは、プロパティに関連するものは何も表示されません。これは単なるデフォルトの検索フォームです。どんな助けでも大歓迎です。

上: 明確にするために、問題は、cm:emailed アスペクトを持つドキュメントをいくつか持っていることです。そのような文書を検索するためだけのフォームを作成したいと考えています。ただし、「 」と言うと<form labelId="Mails" descriptionId="Search for Mails">cm:content</form>、デフォルトのコンテンツ検索フォームも変更されました。簡単な方法がいくつかあるに違いないと私は信じています。カスタム モデルで新しい型を定義したくありません。このソリューションは最後に残します。

4

1 に答える 1