Dynamic text duplicating across all images

salimai - March 23, 2009 - 02:32
Project:Imagecache Actions
Version:6.x-1.x-dev
Component:Text Actions Module
Category:support request
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

I have a preset that is supposed to crop an image (from a photofield) from each node, and add the node title (using the example "return $node->title;" code). The resulting images are then displayed in a view. I have been building and styling the site with just one example node, and everything seemed to be working fine. When I added a second node, however, the text overlay was the same on both images even though the nodes the images were pulled from have different titles. The image beneath the text overlay does display correctly, and some (but not all) other example php snippets worked fine. It seems like any code that tries to pull information about the node just duplicates that information on every image.

I can't figure out if I'm doing something wrong, or if I have encountered a bug. Help please!

#1

dman - April 8, 2009 - 09:03
Status:active» postponed (maintainer needs more info)

(sorry for the delay - real work)
Um, not sure what could be doing that.
is a 'photofield' a cck filefield/imagefield ? I've not heard of it.
There should be no caching going on, although making the $node available to the coding may use a global (which could be a bit dirty if the images are processed in the same pageload ... which I think should be impossible.).
hard to replicate I think.
Have you found any more troubleshooting details?

#2

salimai - May 9, 2009 - 07:24

Sorry, yes it was from a CCK imagefield. I ended up uninstalling this module since I couldn't get past this issue, so no more troubleshooting was done. When I get a chance, I'll try to replicate the issue and see if I can figure out anything helpful.

 
 

Drupal is a registered trademark of Dries Buytaert.