Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automatically create zip file from some content's file field (Plone 3)

Tags:

plone

I have a folderish content type as well as a child type inside. The child type has a file field.

Font family (folderish)
 - Font (child)
   - Font file 1 (field)
 - Font (child)
   - Font file 2

I am wondering if I can automatically generate a .zip file which contains all the files of it's children, which I can then link to in the parent's interface.

If so, can you outline the approach? Do I need to use BLOB? I notice there is a product called zipFileTransport, is there a way to add this action to a rule?

like image 454
Adrian Garner Avatar asked Dec 04 '25 01:12

Adrian Garner


1 Answers

I would recommend instead of making a custom content type with a file field, extend the ATFile content type so that you get all the file-like behavior for free. From there you could use collective.zipfiletransport as long as you only allow your file content type within your folder content type.

like image 169
Ross Patterson Avatar answered Dec 06 '25 17:12

Ross Patterson