Files with additional date information

I’m a developer trying to add functionality for file uploads with a start and end date that can be chosen while uploading.
This should show old files as deprecated by crossing the name out (but still allowing to download) and not showing files dated for the future yet.

I’m not quite sure what would be the best way to approach this.
Is it possible to add a new kind of bottom tab like attachments that is based on the original attachments?
Would it be feasible to create an app that offers this function and link to it from another page?
Can I alter the functionality of the core attachment funtion?

1 Like

From a UI POV the code for the tabs is in docextra.vm. You can check it out.

Now you’d need to store the extra metadata (start/end dates) somewhere. You could do that in xobjects or elsewhere (in the permanent directory for ex). You’d need to associate these metadata with the attachment reference.

I finally got around to really getting started with this.

I ended up storing the metadata in xobjects like you suggested, while displaying the list of attachments as a simple table.

Thanks for your answer, it really helped me to get started with xwiki.