Using content revision in view

10 posts / 0 new
Last post
Using content revision in view

I have a view which shows node fields using nid contextual filter. If I create a draft for same node, than view still shows fields from published version. I tried to add vid contextual filter, but this doesn't work. Is it possible to use revisions in view?

Filter criteria

What filter criteria do you have defined?

I used «Content: nid» and

I used «Content: nid» and «Content revision:vid» also tried only vid but got same results.

Relationship

Did you try to add the relationship Content revision: content?

I tried now with same result.

I tried now with same result. Do I need to change something else in view?

Types of views

You can set up a view to serve content or content revisions, but not both. When you first create the view make sure you select 'content revisions'.

Hope that helps.

Thank you! Finally it works.

Thank you! Finally it works.

Did not know that to serve content revision I need to specify it upon creation of view. Still strange that I can not change this for existing view.

Bigger problem: how can I do

Bigger problem: how can I do same thing for views in quicktabs which is in block which is in panel? I can't pass vid

Get node id from path?

I sounds like you're trying to display revisions for a document (or revision history) in a block? You can use the path to get the node id in Views and then filter results for a block so you only show the relevant revisions, but I'm sure there's a module for this. Is this something workbench can do?

First question was already

First question was already answered by Sylvia, now I want answer on how to do this for «views in quicktabs which is in block which is in panel»

Log in to post comments

You are here