You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@forrest.apache.org by Ferdinand Soethe <fe...@apache.org> on 2006/04/05 11:19:24 UTC

Re: automatic TOC numbering

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