Forum OpenACS Development: Publish files in file-storage

Collapse
Posted by Malte Sussdorff on
I have the following need. Registered users should be able to upload files, but those files are by default "unapproved" and need to be "published" by an administrator. Users can see their own files and all published files, but not unpublished files of others.

I would love to do this using file-storage without having to make unwanted changes to the code, as I just painfully added return_url support to file-storage in all the places where it was missing it.

Any thoughts on this?

Collapse
Posted by Torben Brosten on
Seems like a good idea, add a parameter to active this feature?
Collapse
Posted by Iuri Sampaio on
Create action buttons Approve|Unapprove Publish|Unpublish in the respective listtemplate at packages/file-stroage/www/folder-chunk

Even easier... replicate from sample at pages /packages/acs-subsite/www/members/index

cheers,

Collapse
Posted by Iuri Sampaio on
Good Tip!

cr_items already has cr.publish_status

and they must be "production", "expired", "ready" or "live"