Hi guys,

Some time back we started improving title handling, I'd like that we continue 
this and I'm proposing some further improvements below:

* Make the title field contain wiki syntax (same as the content field) instead 
of just velocity
* Make the title field a textarea so that we can have more than 1 line
* Display a textarea of 1 line initially (to preserve space) but enlarge the 
textarea visibility by several line on the first Enter keypress in the field
* Stop trying to extract title content from the doc content
* Have a backward compat param to still support the old mode, but have it off 
by default in 4.2/4.3
<side>
* Introduce a {{i18n}} macro (or {{translate}}, or …)
</side>

Advantages:
* Same as the content field - More consistency
* More power since we use wiki syntax and we can use any script language
* Removes the WTF symptom when a user edits a page having velocity script in 
the title since they'll see it displayed in WYSIWYG mode with the title content 
evaluated
* Removes the uncertainty about title extraction (for ex if some macro 
generates headings) but still allow it if it's really needed - Since the user 
will be able to write scripts in the title textarea and those scripts can 
extract stuff from the doc content if they really need it
* We'll be able to add a l18n macro and thus display the title translations 
nicely in the wysiwyg editor

WDYT?

Thanks
-Vincent

_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to