Hi again,
as you probably guessed from my recent questions, I have a really
borderline project with lots of customizations. The last one is the
joint edit of split content. Use case: the user edits a dialog in the
page. Half of the properties edited in that dialog are really saved in
the page, and the other half should be saved in another node and NOT in
the page. To make an example, one tab is saved in the page, and the
other sould be saved in a linked node in the data module, this because
part of the dialog content is somewhat logically "centralized" but it's
easier for the editor to change it while changing the page content.
I suppose this use case would be a lot easier with Magnolia 5 and
jackrabbit 2, but they are not here (at least Magnolia 5 is still under
development at the moment) so I have to do this with the current
version. Anyone has experience doing something like this?
Customizing the saveHandler is not enough, I had to customize the dialog
class (stated in the dialog node) AND to extend the Dialog class
instantiated in the former. The big plan is that the first tab just
works regularly, the second one has all element marked with saveInfo =
false and a hidden control with the uuid of the referenced node: during
save the content of the second tab is manually saved to the referenced
node. It's not exactly as easy and simple as it sounds, I have yet to
finish it. I'm wondering if it's possible/quicker to make some kind of
"forward" of the original dialog request to the other dialog handler,
trying to keep two distinct dialogs while saving.
Any other idea is welcomed.
I tried doing this with blossom DialogFactory but at some point it
seemed to me it was not enough for the case and I switched to the
"standard" dialog definition, I'll try to see if it's possible to it
when everything else is working.
Regards, Danilo.
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------