Closed (works as designed)
Project:
Diff
Version:
7.x-3.2
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Mar 2013 at 18:13 UTC
Updated:
23 Mar 2013 at 17:28 UTC
I have a problem with CSS classes disappearing when the inline differences block is active. For example if I pull up a node view which has the inline differences block on the page but still set to 'No highlighting' my node content is enclosed in a div like this :
<div id="node-333" class="node node-proposal node-full clearfix" typeof="sioc:Item foaf:Document" about="/node/333">
However as soon as I use the inline differences block to compare with a previous revision the same containing div is thus :
<div id="node-333">
In other words it loses its classes and other attributes. Is there a reason for this, or a way around it as it is impacting my theming ?
Thanks
Comments
Comment #1
El Bandito commentedHmmmn. It seems the diff_inline_show() function is generating the page when highlighting is active and it uses node_build_content() and applies its own wrapper div which doesn't add any classes. I think that the wrapper div on the initial page is coming from my theme's node.tpl.php file.
So how do I get the correct classes into the inline diff node view ........ ?
Comment #2
El Bandito commentedHmmm. It seems that the initial page's wrapper is coming from my theme's node.tpl.php template and is receiving a bunch of classes. But the page rendered by the diff_inline_show() function bypasses the node template. I don't really yet understand the process here so any suggestions would be appreciated.
Comment #3
El Bandito commentedI think this is just the way things are with the inline diff block. The initial page is a standard node view and then selecting a revision using a block makes an ajax callback which re-generates the node content.
Closing.