On Apr 18, 2009, at 11:01 AM, Jerome Velociter wrote:
Hi,
Vincent Massol wrote:
Hi,
We need to have automatic inline edit mode for XWiki Syntax 2.0
(
http://jira.xwiki.org/jira/browse/XWIKI-2891)
I'd like to implement this quickly since it prevents to use the xwiki
syntax 2.0 as the default syntax (for ex if you create a user in 2.0
syntax and click edit you'll edit it in wysiwyg mode instead of
inline
mode).
A quick solution I have:
* Use the XWikiDocument template field to set the sheet to use
Don't you rather mean the field "defaultEditSheet" ?
I couldn't find that field in XWikiDocument. Do you mean introducing a
new field for this? (I'm +1 for that)
template is for
choosing the .vm to render the document against IIRC
* When a page has the template field set, when
the user clicks on the
edit button it goes automatically in inline edit mode
The template field set to what ? This sounds like a hack and will
prevent using the template field for what its meant for.
I wasn't sure what it was meant for since it's never been used. I'm
still unsure what it's for since you can put the way to display the
page in the page content itself so I'm unsure why you'd need a
template specified.
But I'm ok to use an editTemplate (and rename template to viewTemplate
- after I understand why we need it).
* Add a new
field in the information edit panel to set the template
(only for advanced users I think)
WDYT?
I think we'd better not make a too quick decision on that, since if we
don't make a sound choice, it potentially will create us more work for
the moment we really refactor/remove the inline mode.
I would say "defaultEditSheet" is our best option, but I have to think
more about it. Feedback from JV and Ludovic would help, they both
worked
on such refactoring of the inline mode.
The point of this email is to make people react and so that we come to
a quick conclusion. I've been trying to push this issue for months now
without success so I'm now going to handle it and implement it myself.
We also need this fast since otherwise we can't set the default syntax
to xwiki 2.0.
Thanks
-Vincent