[TYPO3-templavoila] How to generate TOC

Seewer Philippe philippe.seewer at bfh.ch
Wed Dec 16 13:23:50 CET 2009


Hello all

I have a FCE and similar Pagetemplate where the DS looks like this 
(simplified):

SC
   CO
     EL (Header)
     EL (Content)

This is rendered as
<h3>Header X</h3>
<div>Content...</div>
<h3>Header Y</h3>
<div>Content...</div>

No problem there, with current releases of Templavoila even 
Header-Numbering is now very simple. Thanks for that, btw!

My problem now is that I would like to generate a table of contents for 
the COs and put it before the output. Meaning something like:

<h3>TOC</h3>
<ul>
   <li>Header X</li>
   <li>Header Y</li>
   ...
</ul>

<h3>Header X</h3>
...


Sadly I haven't found a way to generate the TOC or remap/duplicate the 
Headers to inside the required UL. Any hints or solutions would be very 
welcome.

Thank you all,
Philippe


More information about the TYPO3-project-templavoila mailing list