Friday 10 June 2011 6:38:53 am
Hello, I have installed the extensions enhancedezbinaryfile (to send images with collection forms) and all2einfoexport (to export to a XML file the information collections). All is ok but the datataype collected in enhancedezbinaryfiles input from the form, is not showed in XML file. I added a "case" in /classes/all2einfoexportclass.php for date datatype (there were a bug) and I added too a "case" for the enhancedezbinaryfile, but I am not able to write the right code to show the FilePath uploaded with theenhancedbezbinaryfile datataype of the form. <code>
case 'ezdate': $content[$collection->attribute('id')][$key] = date( "d.m.Y", $attribute->attribute('data_int') ); break; /////////////////// Afegit per bug a Datatype ENHANCEDEZBINARYFILE ////////////////
case 'enhancedezbinaryfile': $content[$collection->attribute('id')][$key] = $attribute->content(); //$content[$collection->attribute('id')][$key] = '<a href=http://{ezini( "SiteSettings", "SiteURL" )}{$attribute.data_text|parsexml("Filename")|wash|ezroot(no)}>{$attribute.data_text|parsexml("OriginalFilename")}</a>'; break; </code>
Some idea of what I must do? Thanks!
|