Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

Titel: Operator für Inhaltsverzeichnisse (TOC)

*Ursprünglicher Autor: Bard Farstad

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/features/3.8/TOC_operator.txt

This page is a translation. Read the English original

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


Something wrong on this page? Report an error

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