[xwiki-users] Edit sections
In XWiki there are "edit" links to edit sections. They are only enabled with Heading 1 and Heading 2. Can this be modified, for example, how to add this link to Heading 3? Ar cieņu, Mihails
On Jan 11, 2008, at 2:12 PM, Mihails Agafonovs wrote:
In XWiki there are "edit" links to edit sections. They are only enabled with Heading 1 and Heading 2. Can this be modified, for example, how to add this link to Heading 3?
I think you'd need to modify the source code for that. Check XWikiDocument.java in the getSplitSectionsAccordingToTitle() method. I'm not sure why we have limited section editing only to level 1 and 2. I'd be curious to know why. It's not mentioned in the sources. Thanks -Vincent
So, will this problem feature be solved? It would be nice to get a patch, which allowes a user to define which level to have a section editing! Quoting Vincent Massol : On Jan 11, 2008, at 2:12 PM, Mihails Agafonovs wrote: In XWiki there are "edit" links to edit sections. They are only enabled with Heading 1 and Heading 2. Can this be modified, for example, how to add this link to Heading 3? I think you'd need to modify the source code for that. Check XWikiDocument.java in the getSplitSectionsAccordingToTitle() method. I'm not sure why we have limited section editing only to level 1 and 2. I'd be curious to know why. It's not mentioned in the sources. Thanks -Vincent _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users Ar cieтu, Mihails Links: ------ [1] mailto:vincent@massol.net
muxa wrote:
So, will this problem feature be solved?
I solved this problem by myself. I changed (level.equals("1") || level.equals("1.1")) into (level.equals("1") || level.equals("1.1")|| level.equals("1.1.1")) in both the classes com.xpn.xwiki.render.filter.XWikiHeadingFilter and com.xpn.xwiki.doc.XWikiDocument Regards Raffo -- View this message in context: http://www.nabble.com/Edit-sections-tp14756105p15160493.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Ok, but is it possible to modify it without building XWiki from source? Quoting raffovi : muxa wrote: So, will this problem feature be solved? I solved this problem by myself. I changed (level.equals("1") || level.equals("1.1")) into (level.equals("1") || level.equals("1.1")|| level.equals("1.1.1")) in both the classes com.xpn.xwiki.render.filter.XWikiHeadingFilter and com.xpn.xwiki.doc.XWikiDocument Regards Raffo -- View this message in context: http://www.nabble.com/Edit-sections-tp14756105p15160493.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users Ar cieņu, Mihails Links: ------ [1] mailto:raffovi@gmail.com
participants (3)
-
Mihails Agafonovs -
raffovi -
Vincent Massol