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

El Bandito’s picture

Hmmmn. 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 ........ ?

El Bandito’s picture

Hmmm. 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.

El Bandito’s picture

Status: Active » Closed (works as designed)

I 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.