This page last changed on Jul 12, 2006 by mryall.

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

I see no borders

Posted by at Jun 15, 2005 05:31

Can sections and columns be nested?

Posted by at Jun 21, 2005 01:52

nor do I.

Posted by os at Jul 12, 2005 07:26

content

content

Posted by at Jul 20, 2005 06:38

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?

Posted by gfraser at Sep 30, 2005 13:17

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...

Posted by gfraser at Sep 30, 2005 13:21

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?

Posted by psachania at Dec 02, 2005 09:56

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

Posted by jens@atlassian.com at Dec 05, 2005 02:27

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}
Posted by vpaasonen at Jan 04, 2007 03:21
Document generated by Confluence on Mar 22, 2007 20:54