You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@forrest.apache.org by Jan Zelenka <Ja...@profinit.cz> on 2006/03/30 16:56:09 UTC

automatic TOC numbering

Hi,

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

with same format in the page body

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



Re: automatic TOC numbering

Posted by Ferdinand Soethe <fe...@apache.org>.
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