+1, with 2 remarks: - do you allow setting locally in XWikiPreferences, so that XWiki farm are not globally constrained ? - do you allow 0 to disable searching title in content ? Denis On Fri, Apr 16, 2010 at 07:47, Asiri Rathnayake <asiri.rathnayake@gmail.com>wrote:
+1
On Thu, Apr 15, 2010 at 9:16 PM, Vincent Massol <vincent@massol.net> wrote:
Hi,
We've had a user request (Ludovic as a user ;)) to have a config option to decide the header level to consider for a title.
Right now we consider only levels 1 and 2 when computing a title from the doc content.
Thus I'm going to add a config option named xwiki.title.headerdepth and with a default value of 2 (to have the same behavior as now) and use it in XWikiDocument.getRenderedContentTitle().
Note that this is only for the 2.0 syntax (since it's too hard to do for syntax 1.0 and we're not supposed to bring changes to the 1.0 syntax).
Please shout quickly if you're against this.
Thanks -Vincent
_______________________________________________ devs mailing list devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________ devs mailing list devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs
-- Denis Gervalle SOFTEC sa - CEO eGuilde sarl - CTO