I have installed a CCK Imagefield, Imagecache, Colorbox, together with the Insert module and Imagefield Extended. In Imagefield Extended, I added a textfield “photographer”. When I add an image, I get my textfield to write the photographer’s name.
With Insert, I can place the image in my text, where I want it to show up.
The photographer is included with my node, and with this code, I can retrieve the photographer's name:
<?php
$myphotographer = $node->field_myimagefield[$somecounter][‘data’][‘photographer’][‘body’]
?>
What I have not yet been able to figure out, is how to show the photographer’s name at the location of the image’s insertion in the text, e.g. with a nice box around his name, just below the text. As is usually the case with Drupal, the question is where to do something about that. I’m Sure it can be done, and I have the data available in node.tpl.php, but how do I get it to show up below my picture??? In a more general sense, I think, my question boils down to: where to theme $myphotographer? If possible, with a working example..........
Comments
Comment #1
alan d. commentedTry a solution similar to that given in at the bottom of the issue #1210578: 6.x-3.x branch of imagefield_extended not working for imagefield 6.x-3.x, or use the custom formats module.