Asset builder with ability to delete/archive assets?


(Gil Brener) #1

Hi folks,

 

I administer a bare-bones intranet for about 100 users.  I'm wanting to set up an asset builder so users can upload shared files.  These will be time-sensitive, so will need to be taken down after a couple of weeks.  Ideally users would be able to do this themselves.

 

Is there a way to put a 'delete' or 'archive' function into the asset builder, for example where the default 'download' button is?  I can't find anything on this in documentation or searching these forums.  The fallback option is for me as admin to just archive the assets but that's an extra level of manual processing we were hoping to avoid.

 

Running 5.1.4.0

 

Many thanks for any assistance and please let me know if more info is required.  I'm not really trained in Squiz so just kinda bashing my way through.

 

Cheers


(Ashish Karelia) #2

Hi,

The easiest way that comes to mind is via JS API. API has functions to trashAsset() and setAssetStatus() which can be used to implement what you are trying to do.

 

Hope this helps!

 

Ash


(Gil Brener) #3

Thanks Ash!  Looking into it now.


(Bart Banda) #4

You can also try and set up a trigger that sets a future status on asset built? 

 

http://manuals.matrix.squizsuite.net/triggers