Forums / Developer / Data type information collector

Data type information collector

Author Message

David Santiso

Thursday 06 January 2011 3:54:55 pm

Hi,

I created my own class to make a form. I need that a user can add an address using a map, add pictures, etc.
I saw that I can add a map and I can upload images, but I can't be added as "information collector". Can anyone help me?

Thanks,

David

Daisy Radix

Thursday 06 January 2011 11:19:36 pm

Look at the extension "enhanced ez binary file type".

Project url : http://projects.ez.no/enhancedezbinaryfile

eZ Publish certified developper :http://auth.ez.no/certification/verify/378142

David Santiso

Friday 07 January 2011 1:15:30 pm

Thanks. I'll look it ;)

David Santiso

Saturday 08 January 2011 3:59:16 am

I think this is what I need, but can be downloaded and installed?

Steven E. Bailey

Saturday 08 January 2011 5:44:07 am

Are you using ezpublish 4.4? You can download a tar file here:

http://projects.ez.no/enhancedezbinaryfile/downloads/enhancedezbinaryfile_revision_4

or get it with subversion here:

svn checkout http://svn.projects.ez.no/enhancedezbinaryfile

If you are using an earlier version of ezpublish you may want to use revision 3.

Keep in mind that this extension uploads the file to the var directory but does not add the file to the database (except as an attribute to the collected information object) so it may not be 100% what you are looking for.

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com

David Santiso

Saturday 08 January 2011 7:29:53 am

I didn't know that version 4.4 is available. I'm using 4.3.

David Santiso

Saturday 08 January 2011 7:57:32 am

I guess the package is placed in the extensions directory and then activate it from the administration site.

Only serves to allow users to attach files?

Steven E. Bailey

Saturday 08 January 2011 1:43:48 pm

There is an install.txt in the doc directory and a readme.txt (also the todo.txt). Also read the settings files carefully.

Yes, the file is uploaded to a var/storage directory as an information collector which can then be sent as part of the information collection mail. That's the point of the extension. But, it's not going to create a file object or list the file in the ezbinary file table.

If that's not what you want, then it might be easier to hack kernel/classes/datatypes/ezbinaryfile/ezbinaryfiletype.php to add the information collector functionality.

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com

David Santiso

Sunday 09 January 2011 5:35:35 am

This isn't what I want.

Bertrand Dunogier

Tuesday 11 January 2011 1:05:38 am

It seems that what you were suggested answers the problem, but well.

Have you considered providing your users with a simple content create/edit form that will let them create content with binary files ?

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

David Santiso

Tuesday 11 January 2011 10:34:20 am

I don't understand. Binary files?