I've just refactored Diff to be based on Entities rather than just nodes and I am trying to make a plan to expose this functionality. Initially, I was going to do a series of custom page callbacks and alters, but being able to integrate this with Views would truly expose this to anything!
The basic idea is to show a table layout and integrate a series of radios, well two radio arrays for the left and right selection, and then append the submit button "compare". This would go to a "submitted" state, and the user would see the selected comparison style for the two entities (either classic left / right diff or inline diff). This would preferably have context to the search and pagination, enabling a navigation left or right though the results list.
I'd paste in a wireframe, but this is effectively the classic Revisions tab on nearly any content item on drupal.org :)
Background on Diff 7.x-3.x
This can now be passed in any two entities of the same type, node, user, comment, etc, and these are passed to hook_entity_diff() and any fields comparisons are handled by Diff invoking field level comparison hooks. While, node_entity_diff() handles the title field atm, I'm hoping to expand this out to use entity_label() instead, so entity labels would also be covered by Diff internally .
Anyway, love some feedback.
Thanks
Comments
Comment #1
mustanggb commented