Hi Sean,

Maybe it is easier to create a "UploadZIP paragraph" where you upload the ZIP.

- Create your own DialogHandler class (add NodeData "class" with the implementing class to the dialog definition) by extending ParagraphEditDialog and implement onPostSave(SaveHandler saveControl). This method is called after the dialog has been saved.
- You get the paragraph's Content node with this.getStorageNode();
- And the config node (if you want to configure the behaviour) with this.getConfigNode();
- After you finished you can just delete the storageNode
- Don't forget to save()

Best regards,

Ralf

McMains, Sean A schrieb:
Hi folks,

I'm working to expand our Image Gallery paragraph, which is based on the
example on the wiki <http://wiki.magnolia.info/display/WIKI/Image+gallery>,
to include the ability for a user to upload a ZIP file and have any images
contained therein expanded into the gallery paragraph. To do so, I believe
I'll need to do the following:

1. Add "Upload ZIP File" button to the paragraph's BarNew.
2. Link that button to a new dialog with a file upload control.
3. When that dialog is saved, trigger the processing of the ZIP file.
4. Actually do the processing of the ZIP file.

I believe I've got a good handle on steps #1, #2, and #4. I haven't been
able to figure out how to trigger a particular bit of Java code to run when
a Dialog is saved, after the data in that dialog is persisted to the JCR
store. What's the best way to do something like this?

Thanks in advance for any help,
Sean


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------

Reply via email to