Using diff module

The diff module let’s you view the difference between node revisions. It adds a tab on every node page where you can see a list of revisions which you can control via permissions.

Before we get started go to http://drupal.org/project/diff and download the module and place it in sites/all/modules.

Then enable it at Administer >> Site building >> Modules.

Using revisions and diff is fairly simple, if you are logged in as site admin just create a story node and edit it twice with Create new revisions ticked.

diff_fig1.jpg

After the second revision you’ll see a new tab called revisions. From this tab you can view a list of revisions and revert back at any time.

diff_fig2.jpg

If you click on the Show diff button you’ll be able to view the difference between selected revisions.

diff_fig3.jpg

You also have the ability to preview a diff on a node even before you save it by clicking on Preview changes.

diff_fig4.jpg

Lastly there are a couple of options that you can set on the content types edit page at Administer >> Content management >> Content types.

diff_fig5.jpg

If you have any feedback or need help please leave a comment.

Comments

Anonymous's picture

Sorry for the ignorant question, but I don't have a good site to try this out on at the moment... do the diffs show changes made to CCK fields, or just to the node bodies?

ivan's picture
Member since:
7 February 2007
Last activity:
6 weeks 1 day

Yes CCK fields and taxonomy terms are added to the revisions.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <pre> <h2> <h3>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

More information about formatting options