I am using panels to override node template and on panels I am adding views blocks for the node content. I have workbench moderation enabled for this node. Issue is in showing the appropriate revision of node for workbench for example
- When I use
View published
orView Draft
link, I am seeing all revisions of node field instead of current revision forView Draft
and published revision forView published
.
The view I have created is on base table: node_revision
and fields I am adding are Content (historical data)
. from panel I am passing Revision ID
as context to view and in view I have contextual filter set as Content revision: Nid
Do I need to create two separate views display filtered by Workbench moderation : current
and Workbench moderation : published
and switch between them on basis of URL having draft or not?