Generating a Lithium TOC

From Second Life Wiki
Revision as of 09:48, 10 May 2011 by Rand Linden (talk | contribs) (Created page with "'''Prerequisite''': Download this Perl script: http://duramecho.com/ComputerPrograms/HtmlHeadingsToTableOfContents/index.html '''Procedure''' # Copy / paste the HTML into a loc…")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Prerequisite: Download this Perl script: http://duramecho.com/ComputerPrograms/HtmlHeadingsToTableOfContents/index.html

Procedure

  1. Copy / paste the HTML into a local file.
  2. Add <html><body> ....</body></html>
  3. Run script
  4. Copy paste results back into Lithium.
  5. Add TOC table wrapper code

TOC wrapper code

<table id="toc" class="toc" summary="Contents">
<tbody>
<tr>
<td>
<!-- Generated TOC here -->
</td>
</tr>
</tbody>
</table>