Numbering headings, yes, that's what I was trying to get. Thank you for your
answer ;)
Wilson
2010/5/13 Sergiu Dumitriu <sergiu(a)xwiki.com>
On 05/13/2010 10:25 PM, Wilson Leão Neto wrote:
Hello there!
I'm trying to create a macro that would allow the user to use the
automatic
numbering "power".
What are you trying to number? The table of contents only, or the
in-page headings? If it's only the toc, then try {{toc numbered=true/}}.
Numbering headings is not currently implemented for documents written in
syntax xwiki/2.0.
I used this code:
#set ($context.tocNumbered = true)
#set ($context.tocData = $tdoc.getTOC(1, 6, true))
This code only works for documents written in syntax xwiki/1.0, since it
uses the old rendering engine.
to create the macro.
I created the macro. However, when I tried to use it, it just didnt seem
work. After a little time searching I found the problem, or not...
Maybe there's something related to the version in which I'm creating and
using the macro. Either 2.0 or 1.0.
I've seen this issue which is related to the fact I pointed above:
http://jira.xwiki.org/jira/browse/XWIKI-3733
Any clues?
Thank you very much,
Wilson
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users