*Titel: Operator für Inhaltsverzeichnisse (TOC)
*Ursprünglicher Autor: Bard Farstad
*Dokumentation:
'eztoc' ist ein Template-Operator, der aus den Überschriften eines XML-Felds ein
Inhaltsverzeichnis erzeugt.
So wird der Operator verwendet:
Im Template des Objekts:
{* body is ezxml datatype*}
{eztoc( $node.object.data_map.body )}
Das erzeugt diese HTML-Ausgabe auf der Seite (170 ist eine Attribut-ID):
<ul>
<ul>
<li><a href="#170_1">1. Quisque aliquet</a></li>
<ul>
<li><a href="#170_1_1">1.1 Cum sociis</a></li>
</ul>
</ul>
<ul>
<li><a href="#170_2">2. Quisque aliquet</a></li>
<ul>
<li><a href="#170_2_1">2.1 Cum sociis</a></li>
</ul>
</ul>
</ul>
Titel: Operator für Inhaltsverzeichnisse (TOC)
*Ursprünglicher Autor: Bard Farstad
Address: https://doc.exponential.earth/exphelp/viewer/features/3.8/TOC_operator.txt
Documentation license
This page was inherited from the documentation of the original software. It is not covered by the GNU Free Documentation License; it is distributed under the GNU General Public License, version 2.
Copyright (C) 1999 - 2014 eZ Systems AS and contributors