This has come up specifically in a thread about the nodecomments module. Revisioning overrides the callback for 'node/%' preventing nodecomments from rendering properly
http://drupal.org/node/477518#comment-2948320
It's been noted that revisioning fallbacks to original node module page callback (last line in the code below) where as it could invoke another's callback (like nodecomments)
<?php
function _revisioning_view($node) {
if (_revisioning_load_op($node, 'view') == REVISIONING_LOAD_LATEST) {
$vid_to_load = revisioning_get_latest_revision_id($node->nid);
$node = node_load($node->nid, $vid_to_load);
}
// In node.module, node_page_view() is used to display the current, while
// node_show() is used for any other revision. The difference between the
// two is that node_page_view() surpresses the message that tells us we're
// viewing a revision. That's what we use here because we have our own
// configurable message.
return node_page_view($node);
}
?>
Comments
Comment #1
rdeboerOk.
I feel I may be able to help you out.
Watch this space.
Comment #2
locomo commentedthank you! this would be a huge help!!
Comment #3
crea commentedNote that simply recording page callback and invoking it wouldn't always work. Tricky part is callbacks also can have different arguments.
Comment #4
locomo commentedfriendly bump - still think this is possible?
Comment #5
rdeboerReally sorry but currently snowed under...
Comment #6
locomo commentedI understand - for my own planning purposes could you offer a ballpark time frame (week, month, year) for when you might be able to look at this? Thank You.
Comment #7
rdeboerI'll assess this weekend and will get back to you.
Comment #8
locomo commentedmuch appreciated - thank you
Comment #9
locomo commentedjust checking in :)
Comment #10
rdeboerDarn... still haven't had time to look at this one.... sorry.
Comment #11
locomo commentedthanks RdeBoer ... i understand how it is!
any chance you could sketch out for me conceptually what has to happen? .. i'm just slowly getting my head around module development, but i'm willing to give this a crack.. but i could use a little help to get started
thanks!
Comment #12
locomo commentedfriendly bump - hoping to keep this on the radar
Comment #13
locomo commentedHey there.. any chance this will get addressed or should it just be "won't fixed"?
Comment #14
rdeboerHoly moly... it's been 5 months....
The will is there, but the time is not....
Comment #15
locomo commentedhaha.. ok ... will is a good place to start :)
Comment #16
achtonThis is also an issue for anyone utilizing the node_view Panels Page, which overrides the node/%node path.
Therefore, important by my standards :)
Any news?
Comment #17
scottrigbyIt'd be nice to use Revisioning with PURL :)
@RdeBoer: Would you consider something like something like Chain Menu Access API?
Comment #18
rdeboer@scott, #17
Chain menu API looks like the way to go. Thanks for pointing it out to us! I hope to have some time later this month for this and some porting work.
Comment #19
sellsjello commentedI'm also anxiously awaiting a nodecomments compatible revisioning module. Thanks for all your hard work!
Comment #20
locomo commentedthanks RdeBoer - really hoping to be able to integrate nodecomments in 2011 :)
happy to help testing or otherwise!
Comment #21
aenw commentedI'm also running into this problem. I need to use Revisioning and also Node Comments.
Any progress? Any testing I can help with or info I can provide on my configuration?
Comment #22
rdeboerI will look into this this weekend....
Comment #23
rdeboerSorry I need a bit more time. Hopefully next weekend.
Comment #24
cmidgley commentedTo get around this for now, I created a module with a heavier weight than either nodecomment or revisioning. In that module, I used hook_menu_alter to override node/% to point to a new implementation that merges both of their functions into a single implementation. It's not the best answer, but works for me. Here is the key fragment (obviously replace MODULE with your module name, and don't forget to change the module weight):
Hope this helps...
- Chris
Comment #25
rdeboer@ #24
Thanks for all this Chris.
Sorry I didn't get round to spending any time on it so far.
Rik
Comment #26
rdeboerLooks like Chris' solution in #24 does the job with any change necessary to Revisioning.