1

Usually, I display the name of the user edited a node at last, not the ones in the middle. I want to display a list of all the users who edited a node. Is that possible by using Views or any other way? They do so here.

2

1 Answer 1

0

So you thought that part would be closed source ? No! Check http://drupalcode.org/project/drupalorg.git/blob/refs/heads/7.x-3.x:/drupalorg_handbook/drupalorg_handbook.module which adds this functionality to book nodes. This module was built for drupal.org but it's not that difficult to get it modified for your needs!

If you want to do this in Views,

  1. Create a view with Content Revisions in under "Show". uncheck page display,check 'make a block', and click continue and edit. You will be taken to Views UI. Now, remove existing fields and add a new relationship to Content: Author.
  2. Add new field to user name from the just-added relationship.
  3. Add new contextual filter to the node ID. Set the default action to take argument from URL. Then, expand click on Query settings and enable Distinct.
  4. Give the block a title and admin name.
  5. Place block where you want.
  6. Enjoy!
2
  • Thanks a lot Ayesh, but the relation should be to "Content revision: User". And it displays the same username multiple times for multiple revisions. But I want to show an username only once, no matter what the number of revisions is. Any help? Commented Jul 27, 2012 at 2:56
  • sorry... updated answer. see #3
    – AKS
    Commented Jul 27, 2012 at 5:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.