Hi Ralf, Sound good! ... and works fine. Thanks for your help
Stephane -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Ralf Hirning Sent: Monday, February 09, 2009 11:30 PM To: Magnolia User-List Subject: Re: [magnolia-user] Interact with saveHandler Hi Stephane, You can implement a dialog handler class to modify the data handling in the dialog. The new dialog handler must be specified as class property of the dialog configuration. I recommend that you extend ParagraphEditDialog which is the default implementation. There is a method which can be conveniently overridden to add special functionality to a dialog: boolean onPostSave(SaveHandler control) Do some action after saving. Example: Create a thumbnail of a saved image and save it in the repository. Make sure you call save() on the node if you changed anything in the repository. Ralf Gauthier, Stephane (CH) schrieb: > > Hi, > > Could someone explain how to interact with the SaveHandler? Or give > some links to the mechanism explanation ... > Typically, I would like to perform supplementary tasks when an item is > saved (website, document or whatever) > Do I need to declare a new custom handler? Where? Etc. > > I know the observation module exists and that could help but, I would > like to do something more integrated to my module ... > > Thanks in advance for your help > > Stéphane > > > > > ************************************************************************************ > > > > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they > are addressed. > > If you have received this email in error, please notify the system > manager ([email protected]) and delete the message with any > attached files from your system. > > The confidentiality and integrity of this message cannot be guaranteed > on the Internet and the sender does not accept liability for its content. > > *********************************************************************************** > > > > > > ------------------------------------------------------------------------ > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ---------------------------------------------------------------- ************************************************************************************ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify the system manager ([email protected]) and delete the message with any attached files from your system. The confidentiality and integrity of this message cannot be guaranteed on the Internet and the sender does not accept liability for its content. *********************************************************************************** ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
