forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ferdinand Soethe <>
Subject Re: automatic TOC numbering
Date Wed, 05 Apr 2006 09:19:24 GMT

Jan Zelenka wrote:

> Is there a way to setup automatic sections and TOC numbering?
> Something in a format:

> TOC:
> 1 first section
> 1.1 first subsection
> 1.1.1 first subsubsection
> 2 second section

You could probably create CSS-rules form numbering headlines and add
them to the extra-css-element in skinconfig.xml.

> with same format in the page body

> If not, any idea where and how to implement?
> thanks, Jan

Or intercept the final presentation processing of content by writing
templates for h1,h2,... elements in in site2html.xsl of your skin. Plus
another template to number the items of the TOC.

Ferdinand Soethe

View raw message