Code for table of contents in text pattern

Use the following to put in a table of contents in a text pattern page.

<div id="TOC">
   <txp:soo_toc label="Contents" labeltag="h3"/>
</div>

The code will build a TOC for every header that has an IDREF. An example would look like this: h3(#thisIsTheID).

tags: , , ,


Follow

Get every new post delivered to your Inbox

Join other followers: