General Actions:
Log-in
Register
Wiki:
XWiki.org
▼
:
Document Index
»
Space:
FAQ
▼
:
Document Index
»
Page:
NumberedSections
Search
Home
About XWiki
News & Blog
Roadmap
Releases Notes
References
External Links
Projects
XWiki Enterprise
XWiki Enterprise Manager
All projects
Extensions
Documentation
Download & Play
XWiki Enterprise
XWiki Enterprise Manager
Playground
MyXWiki farm
Contribute
Get Involved
Development
Translations
Support
FAQs
Community Support
Professional Support
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
Wiki Home
»
FAQ
»
NumberedSections
NumberedSections
Last modified by
Vincent Massol
on 2011/04/27
Comments
(0)
·
Attachments
(0)
·
History
·
Information
Question
How to get numbered sections?
Answer
For XWiki Syntax 1.0 only,
not supported yet for XWiki Syntax 2.0
Set the following 2 lines at the beginning of your document:
#set ($context.tocNumbered = true) #set ($context.tocData = $tdoc.getTOC(2, 6, true))
If you want to have numbered sections across your wiki, one solution is to set these 2 lines inside the
xwikivars.vm
templates file in the
templates/
dir inside the XWiki webapp.
Tags:
Created by
Vincent Massol
on 2008/02/25
Comments
(0)
Attachments
(0)
History
Information
Quick Links
News & Blog
Events
Screenshots
XWiki References
Support
FAQ
Releases Notes
Roadmap/Issues
External Links
Supporters
License
Media Resources
XWiki Logo
Development Guide
Download XWiki
Download
XWiki
Let us know
What you think of our website?