Hi,
On Tue, Apr 21, 2009 at 2:49 PM, Jean-Vincent Drean
<jean-vincent(a)drean.org>wrote;wrote:
Hi,
I wrote a POC about document types a while back. Some mockups are
available [1]. Summary:
- Introduce a new property in xwiki classes: class type. 3 different
class types: document type, document meta, system. More below.
- Make defaultViewSheet and defaultEditSheet properties (BaseClass)
persistent.
- New Document API methods : getViewSheet, getEditSheet. Those
methods loop over documents objects and resolve the sheet to use.
-- On the first object from a "document type" class (Users, Blog
articles, etc) the sheet to use for this class is returned.
-- Document meta / System classes (comments, tags, etc) never trigger
the use of a sheet.
- When viewing/editing a page getViewSheet/getEditSheet is called and
the returned sheet is used.
- If there's no object from a "document type" class in a document,
"document meta" objects are displayed before or after the content
(depending on a class property) with their custom viewSheet/editSheet
or with the default sheet we provide (an improved version of what we
currenlty have in the object editor).
If we all agree that this is what we want to handle document types
then I think the best would be to develop the first part ("document
types" handling) during 1.9. If we can't develop this in the
timeframe, adding viewSheet/editSheet properties to XWikiDocument does
not conflict with the scenario above (they could be the first
properties checked by Document#get*Sheet). The only issue I foresee is
that it could make things look more complex when we'll have class
types and everything. WDYT ?
If adding viewSheet/editSheet properties to XWikiDocument can be done in a
short timeframe without compromising the possibility of building a more
comprehensive solution to this issue in the future, I think it's our best
choice for now since the feature would need to be ready as soon as possible
to make a default version of XWiki work in XWiki 2.0 syntax by default.
Guillaume
[1] :
http://dev.xwiki.org/xwiki/bin/view/Design/OverhaulOfXWikiClassesAndObjects…
JV.
On Sat, Apr 18, 2009 at 10:45 AM, Vincent Massol <vincent(a)massol.net>
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
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Guillaume Lerouge
Product Manager - XWiki
Skype ID : wikibc
http://guillaumelerouge.com/