You can modify Confluence's look and feel by editing the 'decorator' (layout) files. This page tells you how to customise the layout files for a space

Confluence system administrators can also customise the layout of their entire Confluence site as a whole. For more information, please refer to Customising Site and Space Layouts. Site layout customisations modify the default layout of all spaces in the Confluence site. Not applicable to Confluence OnDemand.

スペース レイアウトについて何らかのカスタマイズを行うと、同様のカスタマイズは上書きされます。

A note about permissions: To perform these customisations, you will require space administrator permissions for that space. For security reasons, you must also have Confluence system administrator permissions to modify any space layout throughout your Confluence site.

If you modify the look and feel of Confluence by following these instructions, you will need to update your customisations when upgrading Confluence. The more dramatic the customisations are, the harder it will be to reapply your changes when upgrading. Please take this into account before proceeding with any customisations. For more information on updating your customisations, please refer to Upgrading Customised Site and Space Layouts.

Confluence は、サイト全体に一貫性のあるルック アンド フィールを提供するウェブページのレイアウトシステム、Open Source SiteMesh ライブラリ上に構築されています。SiteMesh は、ページのレイアウトと構造を定義する「デコレータ」を通して動作します。 

To edit the layout of Confluence, you will need to modify these decorator files. A decorator file is a .vmd file and is written in a very simple programming language called Velocity. Learn more about Velocity. Once you become familiar with Velocity, you can edit the decorator files to personalise the appearance of Confluence.

Confluence のデコレーターファイルは、次のカテゴリに分類されています。

  • サイト レイアウト:サイトの各ページに配置されているコントロールを定義するのに使用されます。たとえば、ヘッダーとフッターを変更する場合、これらのレイアウトを変更する必要があります。
  • コンテンツ レイアウト:ページやブログ投稿などのコンテンツの体裁を制御します。ページ自体の表示を変更するのではなく、配置されているコメントや添付ファイルなどの表示方法を変更します。
  • エクスポート レイアウト:スペースやページを HTML 形式でエクスポートするときの体裁を制御します。たとえば、Confluence を使用して静的な Web サイトを作成している場合、このレイアウトを変更する必要があります。

Learn more about using decorators.

デコレーターファイルを編集するには

  1. Go to the space and choose Space tools > Look and Feel on the sidebar.
  2. レイアウトを選択します ( レイアウトは Confluence システム管理者にのみ表示されます。)
  3. スペースのレイアウト一覧が表示されます。
    • 既定値表示をクリックして vmd ファイルを表示します。
    • カスタムの作成をクリックし、デフォルトの vmd ファイルを編集します。vmd ファイルが編集モードで開きます。
      編集し、更新をクリックします。

スペースでドキュメント用テーマを使用している場合:

  1. Choose Browse > Space Admin at the top of the screen.
    Note: The 'Space Admin' option appears only if you are a space administrator for the space or you are a super user (a member of the confluence-administrators group).
  2. 左側のパネルでレイアウトを選択します。(レイアウトは Confluence システム管理者にのみ表示されます。)
  3. スペースのレイアウト一覧が表示されます。
    • 既定値表示 をクリックして、 vmd ファイルを表示します。
    • カスタムの作成をクリックし、デフォルトの vmd ファイルを開きます。vmd ファイルが編集モードで開きます。
      編集し、更新をクリックします。

スクリーンショット:レイアウト編集例



Click the thumbnail to see an example of a vmd file:

  • ラベルなし