Download & Extend

Override display of node revision

Project:Chaos tool suite (ctools)
Version:7.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work

Issue Summary

Hey everyone,

I'm using Panels' default "node template" to override the standard display of a node. It's working great.

But because Panels' display of the node looks totally different than a traditional Drupal display, I also need to override the display of the node revision so that the revision is displayed using the same Panel as the published node. Any idea as to how to do this?

I already tried creating a separate panel that overrides the revision path (node/%node/revisions/%vid/view), but Panels won't allow me to do so because it says that path is already in use.

My preference would be to have the same "node template" panel also override revisions (so that I don't have to keep syncing changes between two separate panels), but if the only way to accomplish this is to maintain separate panels for overriding nodes and overriding revisions, then I could definitely do that.

Any thoughts on how to accomplish this?

--Ben

Comments

#1

I am looking for the same thing. Did you ever find a solution?

The Display Suite module (http://drupal.org/project/ds) appears to provide this functionality. I would give it a try. Once the module is installed, enable the Display Suite Extras module, then go to Structure -> Display Suite -> Extras -> Other and enable Revision View Mode.

I'm having issues getting it to work properly, but apparently this is not typical. I've got an issue open here http://drupal.org/node/1237064 and I have a list of resources I found when looking for this functionality http://drupal.org/node/1237064#comment-4819568

#2

Category:support request» feature request
Status:active» postponed

I think this is not yet supported. If you use DS with the Panels UI, that could possibly help you. I'm setting this to a Feature request, as the task handler needed for this has yet to be written. Setting postponed as I don't know if anyone is currently interested in implementing this.

#3

Status:postponed» needs review

Here it is something to start with.

I just copied the code from the node view and modified it a little.

Don't ask me why... but even using the same callback "page_manager_node_view_page" it is already loading and displaying the proper revision, without any modification to arguments.

AttachmentSizeStatusTest resultOperations
1189928-ctools-node-revision-task.patch1.14 KBIdleFAILED: [[SimpleTest]]: [MySQL] Unable to apply patch 1189928-ctools-node-revision-task.patch. Unable to apply patch. See the log in the details link for more information.View details | Re-test

#4

Project:Panels» Chaos tool suite (ctools)
Version:7.x-3.x-dev» 7.x-1.x-dev

This is a CTOols patch, moving to that queue.

I also think there's already a patch in the queue for this, but will have to look a bit later.

#5

Status:needs review» needs work

The last submitted patch, 1189928-ctools-node-revision-task.patch, failed testing.