Standard List Header and Footer
nav_first.pngFirst: thread:131
HTML Block
Edited: 11 Oct 2012 12:06 by: GoVegan
Comments: 0
Tags:
nav_prev.pngPrevious: thread:235
Avatar Module
Edited: 11 Jan 2010 07:30 by: pieterh
Comments: 0
Tags:
Last: thread:112
Image Module
Edited: 12 Nov 2009 12:22 by: pieterh
Comments: 0
Tags:
nav_last.png
Next: thread:229
CSS class added to document while editing
Edited: 06 Jan 2010 08:56 by: pieterh
Comments: 0
Tags:
nav_next.png

Steven HeynderickxSteven 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]]

Start a new sub-thread

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.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License