Ivan Zugec

Drupal Consultant

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

Ben Stallings'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

Submitted by ivan on

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

Tim F.S.'s picture

Submitted by Tim F.S. on

Hello, thank you for the tips on how diff module can help me view the difference between node revisions. I will try to apply the tips in practice. Maybe someone will be also interested in this video on Drupal Basics which covers how to create new content types and add CCK fields to them. http://www.tubesfan.com/watch/drupal-basics-creating-a-content-type-and-... You can also manage CCK fields for existing content types in the same manner.

Add new comment