[xwiki-devs] [New Rendering] Automatic edit in inline mode, how?
Hi, Previously we were checking for includeForm in the page's content to decide to use inline mode automatically. Since this have been replaced by the {{include}} macro we have 2 choices I think: 1a) Add a new {{includeForm}} macro that does the same as include but that'll be able to check to decide if we use automatic inline mode 1b) Create a new {{editMode default="view|inline|..."/}} macro used as a marker only to decide what mode to use by default. 2) Add some metadata to the page, like a default edit mode that can set to "wiki", "inline", "wysiwyg", "objects", "class", etc. This mode would be a combo box that you can change in edit mode. 3) Do something more complex like define a page type. One type could be "Form". It's possible 3) is related to the "Easy creation of structured pages" but I don't know enough to see how closely related they are. My take is that in 1) (a or b) is best in the short term while we think more about how we want to do this cleanly. WDYT? Thanks -Vincent
Hi, [snip]
3) Do something more complex like define a page type. One type could be "Form".
It's possible 3) is related to the "Easy creation of structured pages" but I don't know enough to see how closely related they are.
My take is that in 1) (a or b) is best in the short term while we think more about how we want to do this cleanly.
This issue is indeed closely related to "Easy creation of structured pages". The aim of this work will be to use only one edition mode (instead of having edition separated from inline). The best description of the integration's aim is the one available on this page : http://dev.xwiki.org/xwiki/bin/view/Design/OverhaulOfXWikiClassesAndObjectsM....
From this description, the need for a distinction between inline & edit mode disappears : clicking on edit triggers the edition of all items located on the page automatically (there is no longer a need for the #includeForm macro).
Jean-Vincent being the lead developer on this topic, I think it would be good to wait for his input before working further on this issue (I'm not sure when he'll be back from holiday, in 1 week at most). In the meanwhile, 1-a) {{includeForm}} seems to be the easier solution to me. Guillaume
participants (2)
-
Guillaume Lerouge -
Vincent Massol