I am using the upload module to upload an image to an event node, and then use the following code in my event template to display it:

<!-- event picture -->

    <div id = "events_picture">
     <?php if ($node->field_event_image[0]['view']): ?>
       <?php print $node->field_event_image[0]['view']; ?>
       <?php else: ?>
        <!-- For some reason IE6 wants this to be an if else test -->
      <?php endif; ?> 
    </div>
    
<!-- /event picture -->

Making a cloned node works great, but should I delete the cloned version of the node, the ORIGINAL node seems to lose it's connection to the picture, so it doesn't display.

CommentFileSizeAuthor
clone_deleates_pic_path.jpg212.6 KBshawnpetriw

Comments

shawnpetriw’s picture

Also tested above with 2.x-2.0 - same problem.

Also, the "field_event_image" is a CCK field, and my Event type is a roll-your-own Event, not from the event module. It's completely built in CCK.

shawnpetriw’s picture

Also, if I delete the original node, the cloned version of the node also loses it's connection to the picture - so it goes both ways.

pwolanin’s picture

see README.txt - cooperation with CCK image fields is not supported. However, this has become a common enough problem that maybe it needs to be addressed in some fashion. Current support is limited to using the option to exclude that node type from being cloned.

see also: http://drupal.org/node/200092

shawnpetriw’s picture

Thanks - I apologize for not reading the readme.txt more thoroughly. shawnptetriw -> RTFM!

Thanks also for pointing to the other thread.

pwolanin’s picture

Status: Active » Closed (duplicate)

note- I just fixed this problem (I think) in the other issue, http://drupal.org/node/200092