Hi,
Normally, when you edit a wiki page only that page is going to be modified
(no matter the edit mode). If there's a macro call in the content of the
edited page then you can modify the macro call (its parameters) but not the
*data source* (where the macro takes its data). Take for instance the
Include macro. If page A calls this macro in its content:
{{include reference="Path.To.Page.B" /}}
then when you edit page A you can modify the value of the reference
parameter but you cannot modify the page B. You'll have to go directly to
the page B in order to edit it. The same applies to your macro.
Now, your class ContactListClass can have a sheet associated (
http://extensions.xwiki.org/xwiki/bin/view/Extension/Sheet+Module ) so that
when you go to a page holding an instance of ContactListClass the sheet
will display the contact list in view mode and the edit form in edit mode.
But the edit mode will be Inline Form.
Hope this helps,
Marius
On Sun, Sep 4, 2016 at 7:43 PM, Teemu Keinonen <
Teemu.Keinonen(a)relexsolutions.com> wrote:
Hi!
Is there a way to write a macro that allows editing Document object(s)
when in WYSIWYG mode?
For example, I have class ContactListClass which has two string fields:
listName and listContacts. I have document called ‘Customer’ which has two
instances of class ContactListClass. We can forget creating these objects
for now. I want a macro that displays the listName:listContacts pairs in
‘view’ mode and shows editable form when in WYSIWYG mode. Is this possible?
-Teemu Keinonen
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users