Hello guys. Any idea about this? A var replacement or token replacement, to use with the Imagefield Extended?
Or Just node data or node values (for ex. description)?
Thanks a lot.

Comments

dman’s picture

If imagefield extended attaches its info to the field instance, then it should be available in the usual data array where basic imagefield data is found. As long as the reverse lookup algorithm can find the 'owner' node and field data in the first place, it should be possible

david3000’s picture

Thanks for your replay dman. Now I see, but how do I do that? with tokens, with a php replacement on imagecache text?

enoks’s picture

Data from the Imagefield Extended you can access with:
return $file_data->data[YOUR_KEY]['body'];

I used it to add the image source:
return $file_data->data['source']['body'] ? 'Quelle: '.$file_data->data['source']['body'] : '';

dman’s picture

Good going!
I haven't used imagefield extended, and haven't tried it out, but that looks like the right sort of answer!

fietserwin’s picture

Component: Text Actions Module » Code
Status: Active » Closed (works as designed)

The 6.x-2.x is not supported anymore and we are closing all issues for it,but it also looks like the question has long been answered.