Overview

DocBinder changes the behaviour of file attachments in nodes. Instead of directly downloading a file clicked, the file is added to a file collection. The module provides a block that keeps track of the number of files in the collection. When done collecting, the user can download all files in a single zip archive.

Features of Drupal 8 version

  • Overwrites the default field formatter "Generic link" for file fields.
  • Adds a dedicated page for the user to review the content of the DocBinder before downloading the files.
  • Files in the DocBinder can be removed via the preview page.

Features of Drupal 7 version

  • This module overwrites the default field formatters "Generic link" and "Table of files" for both file and image fields.
  • It adds an admin interface to the module to define which content types this should work on.
  • Adds a dedicated page for the user to review the content of the DocBinder before downloading the files.
  • Files in the DocBinder can be removed via the preview page or from the node page this file is attached to.
  • New in 2.0: Module provides an additional field formatter which returns the file id (fid), only. This can be used for rewrite purposes in Views.
  • New in 2.0: When rewriting file fields in Views, you can create toggle links which will add or remove a file to/from download collection depending on whether it has been added already or not.

Installation

Just install/enable DocBinder like most other modules. For best usability make sure the DocBinder block is also enabled.

Notes

DocBinder will not be able to add previously uploaded files to a collection if the site's default file system (public vs. private) has been changed.

Origin

DocBinder for Drupal 7 is an extension of ZipCart.
At first, I simply wanted to extend the original module. I offered several patches to the ZipCart module which never found their way into module. Since the patches started to rely on each other, I created a new version of the original module, a 7.x-2.x branch. Since I didn't get co-maintainership for the original module, I created a sandbox module which eventually became DocBinder.

Credits

The original module ZipCart was written by xurizaemon, it provided the main functionality to collect downloads and create a zip file on the fly out of that collection. Credits for the idea and base code for changing the default field formatters go to TimeFor, the themable table code and the extended admin options were provided by sdsheridan (co-maintainer as of March 8, 2016).
The original extension development and port to Drupal 8 was funded by Ecologic Institute.

Supporting organizations: 
Sponsorship

Project information

Releases