The #toc macro requires programming rights for numbering sections
-----------------------------------------------------------------

                 Key: XWIKI-1899
                 URL: http://jira.xwiki.org/jira/browse/XWIKI-1899
             Project: XWiki Platform
          Issue Type: Bug
          Components: Core, Wiki features
    Affects Versions: 1.2 M2
            Reporter: Sergiu Dumitriu


The bad lines are:
{noformat}
#set ($context.context.tocNumbered = $numbered)
#set ($context.context.tocData = $tocData)
{noformat}

The first one is not needed at all, since the context is already updated in 
com.xpn.xwiki.api.Document.getTOC(). The second line is needed because the 
XWikiHeading filter that generates headings uses the already generated headings 
instead of recounting the headers. This can be fixed by using vcontext instead 
of xcontext as the place to store tocData.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications

Reply via email to