Download & Extend

Filefield Revisions Display Formatter

This project provides a CCK display formatter which shows all the past revisions of a file that were previously attached to the node, using core Drupal's revision system.

This module provides several theme functions which can be overridden and customized by renaming and copying to your theme's template.php file.

Instructions for use
Add a filefield to a content type at admin/content/node-type/node_type_name/fields and enable revisions at admin/content/node-type/node_type_name. Then, enable this formatter on your content type's field display settings at admin/content/node-type/node_type_name/display, called "File Revisions."

Behavior:
Add a file to a filefield. Save the node with the "create new revision" checked. Now, edit the node, delete the file from the filefield, and add a new file, with "create new revision" checked. The filefield set to display as File Revisions will now display the old file, as well as any other previously deleted versions of the file. To remove a file from this field, use the "Revisions" tab on the node and delete all revisions that contain the file you wish removed.

Requirements:
Drupal core revisions module
CCK
Filefield

Known bug
Views will fail to consider a view which contains file revisions as empty. That means it will show and empty view or block instead of empty text. That's because views is pulling the file ID that's the current fid attached to the node from the database. That's what determines whether the view has no results.

This module executes a second query from that original fid, pulling a list of fids which are old revisions. So views empty text doesn't work for this module.

Sponsored by EchoDitto

Downloads

Version Downloads Date Links
6.x-1.0 tar.gz (8.45 KB) | zip (9.14 KB) 2011-Nov-14 Notes

Project Information


Maintainers for Filefield Revisions Display Formatter

  • glass.dimly - 1 commit
    last: 27 weeks ago, first: 27 weeks ago

Issues for Filefield Revisions Display Formatter

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports