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.
1 Answer
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,
- 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 toContent: Author
. - Add new field to user name from the just-added relationship.
- 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.
- Give the block a title and admin name.
- Place block where you want.
- Enjoy!
-
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
-