Thank you Sergiu.

When I'll have a little bit of time I will look.

Best regards,
Cristi.




________________________________
De : Sergiu Dumitriu-2 (via Nabble) <[email protected]>
À : Cristi <[email protected]>
Envoyé le : Mardi, 7 Avril 2009, 15h50mn 28s
Objet : Re: [xwiki-users] Section Editing for heading3, 4, etc in syntax 1.0

Cristi wrote: 
> Is there a way to configure XWiki to allow section editing for Heading 3, 4 
> and above? I see that it allows by default only heading 1 and 2 to be editing 
> via the section editing mechanism. Perhaps there is a setting somewhere for 
> this? 

Hi Cristi, 

By default this is not configurable. But since this is Open Source, you 
can hack into the sources and modify it. 

The places where to look: 
- com.xpn.xwiki.render.filter.XWikiHeadingFilter#160, there's a check if 
the heading is 1 or 1.1. Add as many levels as you want. 
- com.xpn.xwiki.doc.XWikiDocument#getSection (or getSection10 if you're 
using a very recent of the core). There's a regular expression that 
matches 1 and 1.1. Increase the number of repetitions to as many as you 
want. 

Recompile these classes and put them in your wiki. 

If you are able to make this easily configurable, then you can be kind 
and provide a patch. 

-- 
Sergiu Dumitriu 
http://purl.org/net/sergiu/
_______________________________________________ 
users mailing list 
us...@... 
http://lists.xwiki.org/mailman/listinfo/users


________________________________
 
This email is a reply to your post @ 
http://n2.nabble.com/Section-Editing-for-heading3%2C-4%2C-etc-in-syntax-1.0-tp2522506p2599025.html
You can reply by email or by visting the link above.


     
-- 
View this message in context: 
http://n2.nabble.com/Section-Editing-for-heading3%2C-4%2C-etc-in-syntax-1.0-tp2522506p2599124.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to