Hi Christian,

AFAIK you can also write a custom saveHandler just for your control.

Take a look at:
info.magnolia.module.admininterface.FieldSaveHandler
and maybe:
info.magnolia.module.admininterface.MultiValueSaveHandler

Regards from Vienna,

Richard

-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] 
Im Auftrag von Christian Balaguer Jehle (via Magnolia Forums)
Gesendet: Freitag, 28. September 2012 14:23
An: Magnolia User List
Betreff: [magnolia-user] Change the way the information is saved of a custom 
dialog control

Hi All

I'm using Magnolia 4.4.9

I made a custom control CategoriesAsCheckboxes which extends DialogBox and 
displays all sub categories of a configurable parent category as checkboxes. It 
is a replacement for the CategoryMultiSelect control.

Now the selected categories are not saved as i want them. Currently every 
selected checkbox is saved as node data in the jcr with it's key and value.

But i want the selected checkboxes to be saved in 1 jcr property named 
categories with their comma separated uuids, e.g.:

[x] box1
[x] box2

saved node data -> key:categories, value:box1Uuid,box2Uuid

How can i change the save behaviour of my custom control? I know that one can 
write a custom save handler for the whole dialog.. but i only want it for my 
control. Any ideas?

Thanks in advance, Chris.

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=34bf2492-0371-40e5-b4ed-7e23a7412e79


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------





----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to