Difference between revisions of "Generating a Lithium TOC"

From Second Life Wiki
Jump to: navigation, search
Line 7: Line 7:
 
#Run script
 
#Run script
 
:<pre>perl HtmlHeadingsToTableOfContents.pl <YourHtmlFile.html></pre>
 
:<pre>perl HtmlHeadingsToTableOfContents.pl <YourHtmlFile.html></pre>
#Copy paste results back into Lithium.
+
:4. Copy paste results back into Lithium.
# Add TOC table wrapper code
+
:5. Add TOC table wrapper code
  
 
'''TOC wrapper code'''
 
'''TOC wrapper code'''

Revision as of 08:52, 10 May 2011

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
perl HtmlHeadingsToTableOfContents.pl <YourHtmlFile.html>
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>