Confluence 5.0 のサポートは終了しています。
ドキュメントの最新バージョンを確認してください。
When you want to add structure to the information on your page, it is often useful to split the information into columns. By 'column', we mean a vertical block of content. You may want more than one column across the width of the page.
You may also want to use a common structure on a number of pages, so that readers know where to find the information within each page. In addition to columns, sections are useful here. By 'section', we mean an area of the page. A section may contain one or more columns.
Confluence provides the following ways of creating columns and sections on a page:
- Page layouts offer a set of predefined columns and sections.
- The Section and Column macros allow more flexibility. You can set the width of the columns, and put the sections and columns in any part of the page.
Using page layouts
The Confluence editor offers a set of predefined page layouts. Each layout provides one or more columns. Some layouts also provide a horizontal block at the top and bottom of the page. The layout that you select determines the position of the sections and columns on the page, as well as the relative width of the columns. The page's content is confined within the borders of the layout. You cannot add content above or below the sections and columns provided by the layout.
To choose a page layout:
- While editing the page, click the page layout icon. A dropdown list appears, showing icons that illustrate the available layouts.
- Select a layout.
Screenshot: Choosing a page layout
If your page already has content on it, Confluence will put the existing content into the left-hand column of the new layout. If the page was using a different layout, Confluence will put the content into the appropriate sections and columns of the new layout.
Screenshot: A page with a three-column layout, in edit mode
Notes about page layouts
- Very wide tables. The width of each column is set to a percentage of the page width. The icons in the drop down menu indicate the relative widths for each layout. In most cases, Confluence will adapt the width of the columns to fit the width of the page. If a column includes a large table, the content may not fit into the width of the page. You will see a horizontal scroll bar when viewing the page.
- Mixing and matching. You can put Section and Column macros inside page layouts. You can also put tables inside page layouts.
Using the Section and Column macros
セクションマクロと列マクロを使用して、ページに一連の列を追加できます。セクションマクロは列が含まれる領域を定義します。セクションは好きな数だけ作成できます。各セクション内には、列を好きな数だけ作成できます。
セクションといくつかの列をページに追加するには:
- In the Confluence editor, choose Insert > Other Macros.
- Find the Section macro, select it and insert it onto the page.
- Choose Insert > Other Macros again.
- Find and insert the Column macro.
- Add your content to the column.
- 好きな数だけの列をセクション内に挿入します。
スクリーンショット:エディター内の 1 つのセクションと 2 つの列
ページをビューモードで表示すると、上記のレイアウトは次のように表示されます。
ここに列 1 のコンテンツを表示
ここに列 2 のコンテンツを表示
マクロ パラメーター
パラメータは、マクロ出力の内容や形式を制御するために設定するオプションです。
セクションマクロのパラメーター
パラメーター | 既定 | 説明 |
---|---|---|
Show Border | false | セクションと列の周囲に境界線を描くには、このオプションを選択します。 Note: Without a Column macro, the border will not be displayed correctly. |
列マクロのパラメーター
パラメーター | 既定 | 説明 |
---|---|---|
Column Width | 100%のページ幅をセクション内の列の数で均等に分割。 | 列の幅を、ピクセル (例: |
Notes about sections and columns
- All content within your section must be enclosed within a Column macro, otherwise the section layout will not work as expected.
- You can put tables inside columns.
- PDF exports do not handle page layouts. See this issue report: CONF-25240 - Getting issue details... STATUS
コードの例
参照先:
- Confluence Wiki Markup for Macros -- Section macro
- Confluence Storage Format for Macros -- Section macro