On Wed, Jun 11, 2008 at 1:37 PM, Ari <[email protected]> wrote:
Hello. My question / suggestion goes with two part.
PART 1
I've tried to figure out why the XWiki renders xwiki-headings as it does. E.g "1 Title One" is rendered as '<h2 class="heading-1">Title One</h2>'. I would like to change this to be h1-element instead of h2-element.
At first I suspected that this change would require only small modification in some velocity template. It seems that I was wrong. My current guess is that this rendering is done somewhere in java (from xwiki.hbm.xml I tracked the doc.XWikiDocument and with that my guess is DefaultXWikiRenderingEngine.java). However, I don't know how/where I should change the code.
Is there a flow-chart or something to describe the render-phase?
As the description of this list goes: I would suggest that the xwiki rendering should be done in a straightforward way where syntax 1 would be h1, 1.1 h2, 1.1.1 h3 and so on.
Yes the semantics of our titles aren't correct, if I remember well those titles are the default titles coming from Radeox (the rendering components we use which is not part of the XWiki project itself). BTW we are currently rewriting the whole rendering component so I think this issue will disappear in a near future, Vincent can you confirm ? -- Jean-Vincent Drean