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?
What filter criteria do you have defined?
I used «Content: nid» and «Content revision:vid» also tried only vid but got same results.
Did you try to add the relationship Content revision: content?
I tried now with same result. Do I need to change something else in view?
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.
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 same thing for views in quicktabs which is in block which is in panel? I can't pass vid
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 answered by Sylvia, now I want answer on how to do this for «views in quicktabs which is in block which is in panel»