Steven Heynderickx wrote on 10 Nov 2009 15:48
All List modules implement these two arguments:
- header="wiki text"
- footer="wiki text"
The header and footer are output only if there is at least one item in the list. In ListPages, they replace prependLine and appendLine which are deprecated.
The header and footer can be passed in the body of the module as follows:
[[module ListSomething ...]]
==== header
Put stuff that appears before the first item.
==== footer
Put stuff that appears after the last item.
==== else
Put stuff that appears if there are zero items.
====
Body template comes here.
[[/module]]
Where the header, footer, and else blocks are optional and can occur in any order. For example:
[[module ListPages]]
==== header
[[table style="border: 1px solid #000"]]
[[row]]
[[cell]]
Page name
[[/cell]
[[cell]]
Author
[[/cell]
[[/row]]
==== footer
[[/table]]
====
[[row]]
[[cell]]
%%fullname%%
[[/cell]
[[cell]]
%%created_by_linked%%
[[/cell]
[[/row]]
[[/module]]
Great Design | By GoVegan | 1 Comments | 16 Feb 2010 10:19 |
We discourage direct comments on this thread: to discuss it, please start a sub-thread.