On Sun, Apr 19, 2009 at 12:02, Vincent Massol <vincent(a)massol.net> wrote:
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?
Good idea yes, we could extends the principle to a lots of thing like
choosing which panels to show, hide the comments, etc.
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
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Thomas Mortagne