What version of ezpublish are you using and what version of the enhancedbinaryfiletype are you using? Do you see the path in the collectedinfo page?
There is a problem that I haven't been able to reproduce: http://projects.ez.no/enhancedezbinaryfile/forum/general/upload_works_no_information_collected
I'm using eZpublish 4.2.0 and enhancedbinaryfiletype release 4.0.0.
Yes, I see all the information of the image and image path in collectedinfo page, and in sendmail also.
The problem is that when I export the collected form with all2einfoexport extension, the XML file I get, there is no path or name of the image uploaded with enhancedezbinaryfile datatype.
O.k. then you'll want to do something like this for the enhancedbinaryfile case in all2einfoexportclass.php
case 'enhancedezbinaryfile':
$dom = new DOMDocument( '1.0', 'utf-8' );
if ($dom->loadXML( $attribute->attribute( 'data_text' )))
{
$content[$collection->attribute('id')][$key] = $dom->getElementsByTagName( "Filename" )->item(0)->textContent;
}
break;
Change the element in the getElementsByTagName to whatever you want to store and add multiple fields if you want multiple fields to be stored. What is returned by the attribute( 'data_text') is the binaryfile_info xml with the elements: OriginalFilename, Type, MimeCategory, MimePart, Filename, Size
Hi Steven,I apologise for not to respond earlier... I've been working on the export of all de data from the website. Sorry...
It works perfectly, I'm really glad to be able to export all the information collection in the forms with enhancedezbinaryfile. I really apreciate your help. Thanks a lot.
Cheers!
You must be logged in to post messages in this topic!