This documentation relates to the latest version of Confluence.
If you are using an earlier version, please go to the documentation home page and select the relevant version.

(outdated) Layout Macros

All Versions
Click for all versions
Confluence 2.9 Documentation

Index

This page is outdated. Please see new page.

Layout Macros

Usage: {section} {column:width=30%}content{column} {column:width=70%}content{column} {section}
Description: Allows display content in multiple columns.
Example:
{section}
{column:width=30%}Some stuff goes here{column}
{column:width=70%}Some more stuff goes here{column}
{section}
Input: Any wiki content within columns
Output: A column display of that content.
Bundled with Confluence?: Yes

Layout macros allow you to define a {section} of the page that is divided into multiple {column}'s.

You must always define {column}s inside a {section}, or the macro will not work.

Optional parameters for the {section} macro:

  • border - use {section:border=true} to draw the columns with borders around them. The default is no border.

Option parameters for the {column} macro:

  • width - use the width parameter to determine how wide each column should be. By default, the columns are automatically resized to fit their contents.

Example:

{section}
  {column:width=30%}
    This is some _Wiki Markup_
  {column}

  {column:width=70%}
    This is some more wiki *markup*
  {column}
{section}

Produces:

This is some Wiki Markup

This is some more wiki markup

And the same with {section:border=true}

This is some Wiki Markup

This is some more wiki markup

Labels:

section section Delete
column column Delete
macro macro Delete
Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.
  1. Jun 15, 2005

    Anonymous says:

    I see no borders

    I see no borders

    1. Jul 12, 2005

      Andrew Ostler says:

      nor do I.

      nor do I.

  2. Jun 21, 2005

    Anonymous says:

    Can sections and columns be nested?

    Can sections and columns be nested?

  3. Jul 20, 2005

    Anonymous says:

    content content

    content

    content

  4. Sep 30, 2005

    Guy Fraser says:

    I don't know about anyone else, but borders are not workig on the Section macro ...

    I don't know about anyone else, but borders are not workig on the Section macro when using Confluence 1.4.1 - which version was that feature added in?

    1. Sep 30, 2005

      Guy Fraser says:

      It works in 1.4.3 so it must have been added in 1.4.3 or 1.4.2 anyone know which...

      It works in 1.4.3 so it must have been added in 1.4.3 or 1.4.2 - anyone know which as I don't have a 1.4.2 to test on...

  5. Dec 02, 2005

    Prakash Sachania says:

    It seems that nesting of "section" macro is not allowed or recognized "section" ...

    It seems that nesting of "section" macro is not allowed or recognized - "section" within another "section". Is that so? Is there any plan for supporting nesting?

    1. Dec 05, 2005

      Jens Schumacher says:

      Nestes sections are currently not supported. One of the reasons is that the synt...

      Nestes sections are currently not supported. One of the reasons is that the syntax will simply become unreadable.

      However, if you think this is a useful feature, please file a feature request on http://jira.atlassian.com.

      Cheers,
      Jens

      1. Jan 04, 2007

        Veijo Paasonen says:

        It will be useful feature. I made some own macro to hande situation. macro nam...

        It will be useful feature. I made some own macro to hande situation.

        macro name macro has a body templace
        begincol - <table border=0 width=100%><td>
        newcol - </td><td>
        endcol - </td></table>

        With these three macros it is possible to make table as "nested columns" inside section. Code don't look nice as Jens told. Syntax easily become unreadable, but it works.

        e.g.

        {begincol}
        h2. part one
        {newcol}
        h2. part two
        {newcol}
        h2. part three
        {endcol}

Add Comment