Plugin Information
Wiki Table of Contents 1.2
- Author:
- Derek Jones
- Published:
- Sep 26, 2006
- Last Updated:
- Nov 25, 2008
- License:
- First Party License
Creates a table of contents in wiki articles from heading tags.
Requirements
ExpressionEngine 1.5+ and PHP 4.3.2+ (or PHP 4.2 with PCRE libraries correctly compiled)Example Usage
[TOC]
[h3]Heading[/h3]
[h4]Sub-heading[/h4]
[h3]Another Heading[/h3]
Notes
The plugin will format your article with your preferred formatting plugin, andcreate a table of contents in place of your [TOC] tag, in the form of an HTML
unordered list. The list is given an id="toc" to facilitate styling via CSS.
Example output:
<p><strong>Table of Contents</strong></p>
<ul id='toc' title='Table of Contents'>
<li><a href='#Heading'>Heading</a>
<ul>
<li><a href='#Sub-heading'>Sub-heading</a></li>
</ul>
</li>
<li><a href='#Another_Heading'>Another Heading</a></li>
</ul>
<hr />
-----------------
CHANGELOG:
-----------------
Version 1.1 - Added support for UTF-8 headings. Requires PHP 4.3.2 (or 4.2 with the PCRE library compiled correctly).
Version 1.2 - Modified for compatibility with the current typography class (EE 1.6.5+).

