Another idea while waiting for a full-fledged document type solution is to implement the metadata properties syntax in xwiki syntax 2.0 (this is http://jira.xwiki.org/jira/browse/XWIKI-3320) and write the following for pages that want inline as a default for their edits: %automaticInlineEdit true Then XWikiDocument.getDefaultEditURL() will check (when the syntax is 2.0) if that document metadata property is set. WDYT? Thanks -Vincent On Apr 18, 2009, at 10:45 AM, 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 * When a page has the template field set, when the user clicks on the edit button it goes automatically in inline edit mode * Add a new field in the information edit panel to set the template (only for advanced users I think)
WDYT?
Thanks -Vincent