Your comments

Thanks !

I'll have a look to the custom event scripts.

Hi,

I will to use FileRun as a typical file sharing drive but also as a light DMS (Document Management System).

So I need my documents to be associated with a unique number formatted according to my needs.

That why I've added a field named 'Document Number'. This document number must be unique and is not a simple incremented counter but it's generated according to the local date/time.

This document number is visible on the document when it gets printed so I can easily research it using the FileRun search function.


For now I have to enter this value by typing it but it will be very convenient if it could be automatically generated.

FileRun can not handle every kind of value that may be automatically generated (each user has specific needs). That's why it would be convenient if we could enter the name of a PHP function, shell script or whatever is practical for the dev team. This function would be created by the end user and called by FileRun when a file is inserted or copied.

I was thinking of adding this in the Automatic Source parameter. See below.

dms.php would be a PHP file I would create and that would include all the functions I need.

Another way to do it. Would be to implement a custom event system where users could create hook functions for specific events. Let's say I define a function I associate to the "File uploaded' event.

Like it's possible to define notification rules but this time with events associated to hook functions.

Hope I made myself clearer.

Thanks.