I would like to modify the workflow history tab so that it allows you to do a diff comparison between two revisions of a node. An example of where this might be useful is where a user submits content for review, the moderator sends it back for review, the user resubmits with changes, and the moderator wishes to compare the new content against previously reviewed content.

The diff module allows the moderator to compare different revisions of a node, but does not allow the moderator to see the corresponding state changes of the node, so in the example above the moderator does not know which revisions have previously been reviewed.

Has anybody attempted to implements similar functionality? Would this be a desirable feature to include in future versions of the workflow module?

I have hacked together a solution which relies on recording the vid of the node each time the workflow history is written to. I have also hacked the diff module so that it retrieves information from the workflow_node_history table.

I can upload the code that I have written if this will be helpful.

CommentFileSizeAuthor
workflow and revisions.png52.86 KBntt
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

RdeBoer’s picture

Hi Bob,
Maybe the Revisioning module and its tutorials could benefit?

Encarte’s picture

subscribe

Encarte’s picture

Title: Workflow and revisions » Workflow and revisions (diff module compatibility)
Version: 6.x-1.1 » 6.x-1.4
Category: support » feature
Bastlynn’s picture

This is a pretty interesting idea, but something Diff might be in a better place to handle. Will keep it in the queue until I get a chance to look more closely.

johnv’s picture

This might be possible if Workflow were a 'true' Field API field, as proposed in #2019345: Create a 'Workflow Field' with Widget, Formatter, Fieldtype

johnv’s picture

Status: Active » Closed (duplicate)

Let's focus on #2019345.

johnv’s picture

Issue summary: View changes
Status: Closed (duplicate) » Fixed

This should be working in D7 now using Workflow Field, which now supports Node revisions. Please re-open if there is a problem.

johnv’s picture

Status: Fixed » Closed (duplicate)

But not fixed in D6.