Drupal Diff for Delineating Differences

By

This article was published in the print magazine Drupal Watchdog, Volume 5 Issue 2, Fall/Winter 2015, on page 9, by Tag1 Publishing. The magazine was distributed at Drupalcon Barcelona, 2015-09-21.

As part of a content approval workflow, it can be valuable for editors and other people involved in the process to be able to see changes between various revisions of any given content — whether additions, deletions, or modifications. The Diff module is tailor-made for this functionality. Its configuration page (admin/config/content/diff) allows one to display any differences using the classic CSS styles or boxes, and as HTML or plain text; limit which revisions can be compared; and specify the number of leading and trailing lines of adjacent text (for providing context).

Revision differences
Figure 1. Revision differences

Copyright © 2015 Michael J. Ross. All rights reserved.

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <address> <area> <blockquote> <br> <cite> <code> <dd> <div> <dl> <dt> <em> <fieldset> <h1> <h2> <h3> <h4> <h5> <h6> <hr> <img> <input> <li> <map> <ol> <p> <pre> <span> <strong> <sup> <u> <ul>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
5 + 1 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.