I'd appreciate any insight on whether the workflow I am trying to implement is possible.

Users on my site are able to create a single node of content type ABC. By default, all users are able to access each other's ABC and see the published version; the published version is shown using a Views content pane via Panels on each respective user's profile.

Revisions to content type ABC are controlled by the Revisioning module. This setup works great for moderation, but users are getting confused because when they make changes to their ABC nodes, those changes aren't immediately reflected on their profiles. Is there a way to show users their latest revisions in a Views content pane?

Notes
* Users have "View own revisions of ABC" permission
* The view that displays ABC is set to show Fields
* I tried the "Latest revision" filter on Views but this causes nothing to be displayed; currently, the only Filter on the view is Content Type: ABC

I realize this is a very complicated setup, but I'd appreciate any pointers on if I'm heading in the right direction or if I should try something else.

CommentFileSizeAuthor
#6 Content Revisions Views.jpg394.48 KBrdeboer

Comments

ptmkenny’s picture

Title: Views- show latest version of an author's node to the author only; show the published version to all other users » Is it possible to show the latest revision in Views if the user has the appropriate permission?

I have spent a couple hours trying to figure this out and I now have a much simpler problem. In a view, is it possible to show the latest revision (not the currently published revision but the most recently edited revision) if a user has appropriate permissions? I have been trying to set up a view that shows moderators the most recent revision, but I can only get the last published revision to appear.

Am I overlooking something or is the revisioning module not able to do this?

shenzhuxi’s picture

This setting seems doesn't work properly.

Links to view content default to
+ displaying the current revision
+ displaying the latest revision (reverts to current revision, if the user is not permitted to view revisions of the content type in question)

It can only change the node tab title between "View current" and "View latest". If you set to "displaying the latest revision", the current revision is still displayed.

ptmkenny’s picture

Category: support » bug

Ok, thanks for this information. I am changing this to a bug report since it doesn't appear to be working as intended.

rdeboer’s picture

Status: Active » Closed (cannot reproduce)

I'm confused. Are we talking about a View (as in the Views module) or about the View tab on the node?
If this is still an issue in 7.x-1.x-dev (4 April 2013 or later), then please re-open and clearly state the problem.

ptmkenny’s picture

Status: Closed (cannot reproduce) » Active

I just downloaded the latest (4 April 2013) dev version of Revisioning, cleared the cache, and I still have the problem.

I will try to explain the problem as clearly as possible.

Use case: I have a site where revisions to documentation need to be approved before publication. So I have an "article" content type; revisioning is enabled for this content type. On the content type edit page under publishing options, I have enabled New revision in draft, pending moderation and Create new revision only when saving article content that is not already in draft/pending moderation.

Administrators have all permissions. Anonymous users have permission to view the content type but not to view revisions to the content type.

Now, what I am trying to do is use the Views module to create a view page for administrators. This view page displays a list of articles and the values for their fields.

What I think should happen is the view page should show the latest revision when accessed by an administrator, since the administrator has all permissions, including permissions to view all revisions. In other words, if there are pending revisions to an already published article, the pending revisions should show. However, what actually happens is the values of the fields for the published revision show, even if there is a newer pending revision.

I know the administrators have permission to access the latest revision because when I click "edit" I see the latest revision, not the published revision. However, I want to show the values for the latest revisions to administrators (users with appropriate permissions) in a view created with the Views module.

Thanks in advance for any insight you can provide. If this is impossible, just knowing that would be very helpful too.

rdeboer’s picture

Status: Active » Closed (won't fix)
StatusFileSize
new394.48 KB

@ptmkenny, #5

Thanks for the detailed explanation.

I'm afraid I'm not getting much further than you.
I can easily create a View (of Content Revisions, rather than Content) that shows Revision Titles that link to the appropriate pending revisions, see attached. This View is essential the same as the "Pending revisions" block, except that I've added an extra filter to only show the Latest of the pending revisions (for the case that a node has multiple pending revisions).

In order to show the Revision fields I'd hoped that a Relationship to the Content Revision ID (VID) would have brought these fields in. But as you say, while the fields do show up, they're the ones that belong to the current revision, not the pending revision.

So for now, I'm afraid this one has to stay in the "too hard" basket.

Best,
Rik

ptmkenny’s picture

Ok, thank you for getting back to me. It's nice to know that it's not a silly misconfiguration error on my end but actually a real technical challenge.