Rajendra:
 
It may be due to an unfortunate side effect of the way that XWiki's rendering is done, which has resulted in a number of related difficulties.
 
The XWiki methods that do such things as creating a table of contents for a document or finding wiki links look only at the raw (unrendered) content of a document; if any of the patterns that they seek are created only during the rendering of the document, they will not be found.
 
If, as I suspect, this is one of those cases, and if some of the composite document's level 1 and 2 headers are contained within included documents or otherwise created dynamically, they will not have been seen by the code that divides the document into editable sections.
 
Of course, if the "section" you want to edit is actually in a different document, then there is good news and bad news:  the bad is that you can't use section editing in a composite document to edit the contents of an included document anyway. The good is that you can modify the class sheet for the included document's class[es] to add an "edit this document" link, and with a little sleuthing, you can probably find the necessary bits so that you can even make it look identical to a section edit.  Even so, level 1 and 2 headers contained in object fields (i.e., entered by the user) will probably not render as editable sections, though I haven't tried it.
 
brain[sic]


From: Rajendra Prasad Murakonda [mailto:rajendra.prasad@gmail.com]
Sent: Wednesday, April 11, 2007 5:00 AM
To: xwiki-users@objectweb.org
Subject: [xwiki-users] Section editing in XWiki...

Hi,

How does the section edit in XWiki works? I created an application similar to FAQ application of XWiki. Section edit is enabled for the class sheets but not for the documents that I created using the application(that I made). Why like that?

Is the section editing for class sheets and documents different. There was a FAQ which says section editing for documents is not yet there. But I can see section editing enabled for many of the pages on XWiki site.

Please note that I enabled the section edit in the XWiki configuration file and I have edit rights on the document. Still section edit's not there.

Thanks & Regards,
Rajendra Prasad Murakonda.
http://digitalglue.in/