Skip to content
Philipp Hirsch edited this page Feb 9, 2014 · 3 revisions

Plain lists

Lists can be created with the following shortcuts.

ODF_Text::createList($child, $attributes);
ODF_Text::createListHeader($child, $attributes);
ODF_Text::createListItem($child, $attributes);

To create a real list you have to create a listelement first:

$list = ODF_Text::createList();

Now your list needs some items to be really useful.

$entry = ODF_Text::createListItem("My List Item");
$list->appendChild($list);

The list can now be added to your content-body.

In the same way you can create a listheader.

Attributes

List

List Header

List Item

Clone this wiki locally