Hi,

On this page: http://www.klimatosoof.nl/node/303 when I select the Annotate option I get TWO boxes. Do you have an explanation and or a way to get rid of it?
It may have to do with the fact that the page contains a Video, but that would surprise me since the Video gets there through the module Embedded Media Field and as far as I know this doesnt treat videos as nodes.

Thanks

Theo Richel

Comments

clemens.tolboom’s picture

The code for displaying a annotation box is

function annotate_nodeapi(&$node, $op, $teaser, $page) { 
  switch ($op) { 
    case 'view': 
-- cut --
      $node->content['annotate_form'] = array( 
        '#value' => drupal_get_form('annotate_private_entry_form', $node), 
        '#weight' => 10 
      ); 
  } 
} 

This means one form per node.

What you could do is add this code snippet right after case 'view':
(haven't tested the code)

  watchdog( 'annotate_view', print_r( $node, true));

Then ask for a page having this double annotate box.

Add a new comment with the new log entry.

Then goto 'admin/logs/watchdog'

Do not forget to remove the line of code again :-)

clemens.tolboom’s picture

Status: Active » Closed (fixed)

After a phone call it became clear that the combination
- node to block module
- tinymce module
pulled forward two full nodes with rich text enabled.

tinymce put these two editors below each other. Probably because the block space was too small.

Case closed

theorichel’s picture

Not entirely closed ;-) I'd like to tell how I solved it right after our phone call: I made a new content type, similar to 'story' but with the Annotate option disabled. I use that content type when I want to put the text of a node in a block next to my main body of text ( With the Node as a block module).