比較バージョン

キー

  • この行は追加されました。
  • この行は削除されました。
  • 書式設定が変更されました。

Configuration ファイルを使用すると、カスタム Surf オブジェクトで使用する任意の XML 記述を保存できます。ほとんどの場合、これらのオブジェクトの1つを構築する必要があるのは、サイト構成を記述するときだけです。サイト構成の例を次に示します。

場所

  • classpath:/alfresco/site-data/configurations
  • classpath:/alfresco/web-extension/site-data/configurations
子ページ (子表示)

定義

コード ブロック
languagexml
themeEmacs
linenumberstrue
<configuration>
  <source-id>SOURCE_ID</source-id>
</configuration>

プロパティ

  • <source-id> - 任意のIDに関連する設定をタグ付けします。Surf は source-id が site の設定を自動的に探します。

例 - サイト構成

次のファイルは Surf サイトの構成を定義しています。サイトソース ID にバインドされた Configuration オブジェクトについて説明します。

コード ブロック
languagexml
themeEmacs
linenumberstrue
classpath:/alfresco/web-extension/site-data/configurations/default.site.configuration.xml

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <title>My Web Site</title>
  <source-id>site</source-id>
  <properties>
    <root-page>welcome</root-page>
  </properties>
</component>


原文:Configuration