This project is not covered by Drupal’s security advisory policy.

The File Shelf module enables you to integrate publishing/unpublishing operations to images/files.

file shelf

Problems

Most of the Drupal sites are serving files via the public download method which means they have nearly no control over the files and old file links will still remain accessible even the host entity is unpublished. This becomes an issue when users click on any old file links that cached by search engines until you remove the files entirely from the server.

Solutions

File Shelf offers an one-off solution by introducing a new stream wrapper called shelf://which by default sit under the private file system.

By enabling this module, File Shelf will take care of unpublishing / publishing the files by changing the stream wrapper from public:// to shelf://or vice versa. Please note files underpriavte:// will be untouched.

Field Collection

File shelf supports nested field collection, it checks any file fields that sit under the nested field collection field.

Notes

  • This module works with the Workbench moderation module.
  • This module works with the Field collection module.
  • This module uses Entity Status module to generalises entity status e.g. $entity->status or $entity->published.

How to use

  • Enable the module via /admin/modules.
  • Go to admin/config/media/file-system & setup the “Private file system path”.
  • Go to admin/config/media/file_shelf & check “Enable File Shelf”.
  • File Shelf will now start archiving file when you are unpublishing a node.

Project information

Releases