On Sep 8, 2009, at 3:50 PM, Vincent Massol wrote: > > On Sep 8, 2009, at 3:27 PM, Vincent Massol wrote: > >> Hi, >> >> On Sep 8, 2009, at 3:22 PM, Ecaterina Valica wrote: >> >>>> 1) Display doc titles with <div> >>>> >>> >>> isn't H1 more semantically correct? >> >> Maybe yes. It just looked strange to me to have 2 H1 but I'm ok >> with whatever our HTML experts say :) >> >>>> 2) Display document content headers using <h1>-<h6> >>>> 3) Display doc titles with a larger font size than h1 (or h1 with a >>>> smaller font size) >>>> >>> >>> This is not necessary. H1 means the first title in a document. The >>> name of >>> the document could be represented with H1. >>> If me as a user, I want to have multiple H1 (with same importance >>> as the >>> title), I should be able to do that. >>> The difference between the title and another H1 is the position in >>> the >>> document (the title is always the first). >>> >>> Representing the title as a H1 solves the 6) problem. Can you >>> explain a user >>> why the first title is bigger on some pages, while on other >>> pages(no title >>> specified), the title has the same size like other H1? >> >> = header = generates a H1. > > The other option is to modify the renderers and the XHTML renderer > in particular so that = header= generate a H2 instead but this means: > - all skins must be modified as mentioned in 5) > - the wikimodel xwiki parser needs to be modified so that only up to > 5 "=" symbols are supported since there's not H7 > - verify other JS are not broken (like the JS for section edits for > ex)
Note that this would also mean that when using the XWiki rendering module standalone there's no way to generate a document's title. <thomas>That's why I was asking the other day whether an onTitle() event should be added or not to the Listener interface</thomas> Thanks -Vincent >>>> 4) Force cursor to be in the title field when editing a new >>>> document. >>>> Force cursor in the content field when editing an existing >>>> document. >>>> This is to make it easy using the keyboard only to enter doc titles >>>> (since it's currently dead easy, we need something close in >>>> easiness) >>>> >>> >>> +1 >>> >>>> 5) Modify all our existing skins: Toucan, Albatross, Finch and >>>> Dodo so >>>> that they use they display the doc title, similarly to Colibri >>>> >>> >>> +1 >>> >>>> 6) Have a title compatibility flag in xwiki.cfg. When active, use a >>>> Javascript to do this: if there's no title specified for a page >>>> and if >>>> the first content is a H1 then use it as the page's title. >>>> >>> >>> +1 >>> >>>> >>>> We need at least 1), 3), 6) to be able to release the Colibri >>>> skin for >>>> 2.0 final IMO. >> > _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

