Adrian,

I am sure you are not asking whether and how you can attach a document to an email ;-)

So, if you have the path to the document you can get an InputStream of the document with

MgnlContext.getHierarchyManager("dms").getNodeData(path).getStream()

Ralf

Adrian Butnaru schrieb:

Thanks Ralf,
Finally I see some light!
I am extending the DocumentDialog from dms module and override save() method. I am wondering if is possible to send the document attached to the email or only the path as text in the body?
Any experience about that?

Adrian





Ralf Hirning schreef:

Adrian,

You can use your own dialog handler by specifying the class property of the dialog. To create this class extend info.magnolia.module.admininterface.dialogs.ParagraphEditDialog and override the save() method. Learn from the source code how to access the dialog fields...

Ralf

Adrian Butnaru schrieb:

Thanks,
I did it and it shows correctly.
But stil I am not able to find out where should I change the code in Magnolia to make the button sending an email in place of saving.

Any help would be great!

Adrian

Ralf Hirning schreef:

Adrian,

add a property "saveLabel" with value "Send" to the dialog definition

Ralf

Adrian Butnaru schrieb:

Hi,
I created a new function button "Send Email" which opens a dialog where one can fill in the email address where the path to a certain document from DMS have to be sent (for revision).

Can anybody help me giving me a tip how to change the "Save" button in a "Send" buton?

Thanks in advance!

Adrian

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

Reply via email to