Table of Contents
| From: | Markus Weber | Date: | Thu, 18 Sep 2003 19:54:51 +0000 |
| Subject: | Table of Contents | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-10236@lists.php.net to get a copy of this message | ||
Hi,
can I use Smarty to create a "Table of Contents"? The Table of Contents
should contain links to all headlines on a page.
Example:
<H1>Introduction</H1>
<H1>How to build a station</H1>
<H2>Step1</H2>
<H2>Step1</H2>
For the above example an table of contents like the following should be
generated:
| Table of Contents:
| - Introduction
| - How to build a station
| - Step 1
| - Step 2
I found a php script which make this here:
http://groups.google.de/groups?hl=de&lr=&ie=UTF-8&oe=UTF-8&selm=MPG.18b65319
b5438707989688%40powernews.libero.it&rnum=10
Unfortunally the script cuts the end of very large pages :-(
bye,
Markus