Quantcast
Channel: Recent posts across whole site
Viewing all articles
Browse latest Browse all 49206

Implementing revisions for Panel-Nodes

$
0
0

Hi,

i am building a website where i want the users to be able to create and edit node-panels with flexible layout.
Also i want to use the same revision features for these node-panels as for normal nodes.

While researching on this topic i found out, that this is not an intended feature. See panels_node.module:

<?php
/**
* Implementation of hook_load().
*
* Panels does not use revisions for nodes because that would open us up
* to have completely separate displays, and we'd have to copy them,
* and that's going to be a LOT of data.
*/
function panels_node_load($node) {
?>

I wonder now how i could add this feature to the node-panels module or if it is possible at all.
As far as i can tell the main problem is, that the revision would not only have to save "simple" body-data like with normal nodes.
Instead in a node-panel revision the layout settings, panes and their content would have to be saved for each revision.

It would be nice if somebody with more knowledge of panels than me could give me some suggestions.
Especially if it is implementable through saving the mentioned data or if this kind of feature is not possible at all.

Thanks and cheers,
Tim


Viewing all articles
Browse latest Browse all 49206

Trending Articles