0

私は現在、作成したいくつかのカスタム アスペクトのカスタム検索を Alfresco で開発しています。カスタム アスペクトを検索に追加するために編集する必要がある正しい xml ファイルを教えてもらえますか? 私はウェブ上の多数の投稿を調査しましたが、何も見つかりませんでした...

4

1 に答える 1

1

Alfresco Explorer のデフォルトの高度な検索のことですか? その場合、内部で web-client-config-custom.xml.sample という名前のファイルを検索する必要があります。

/Alfresco/tomcat/shared/classes/alfresco/extension

また

/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/extension

次に、サンプル拡張子を削除してファイルの名前を変更し、web-client-config-custom.xml を作成して、上記の最初のパス (webapps/alfresco ではなく「共有」パス) 内にファイルをコピーします。次に、内部で「config evaluator」という名前のタグを検索します。高度な検索は次のようになります。

     <!-- Example of configuring advanced search -->
   <!--
   <config evaluator="string-compare" condition="Advanced Search">
      <advanced-search>
         <content-types>
         </content-types>
         <custom-properties>
            <meta-data aspect="app:simpleworkflow" property="app:approveStep" />
         </custom-properties>
      </advanced-search>
   </config>
   -->

そこで、customModel.xml ファイルで作成したカスタム アスペクトを追加できます。カスタムの高度な検索機能を拡張するには、次のように、いくつかのカスタム コンテンツ タイプ検索またはアスペクトの一部ではないプロパティを追加できます。

<config evaluator="string-compare" condition="Advanced Search">
    <advanced-search>
        <content-types>
            <type name="myNamespace:customType" />
        </content-types>
        <custom-properties>
            <meta-data type="myNamespace:customType" property="myNamespace:customTypeProperty" />
            <meta-data aspect="myNamespace:customAspect" property="myNamespace:customAspectProperty" />
        </custom-properties>
    </advanced-search>
</config>

それが役に立てば幸い..

于 2012-08-31T14:02:01.270 に答える