I've adventured to the code and issue queues, but can't seem to find a way to theme the output of imagefield, so I can make use imagecache. Currently I did it with token replacements which is not flexible enough when moving sites. So is there a theme function I missed?

Thanks for any direction.

Comments

Scott Reynolds’s picture

Category: feature » support
Status: Active » Postponed (maintainer needs more info)

I take it you want to display a imagefield that is attached to a node type? The way to do that is to use the Activity -> node relationship and add your field to the View.

If that didn't work, please describe what you tried to do?

gausarts’s picture

Actually, I am trying to have a template in the Activity Publisher Template such as:

Record an activity message when: node insert types with CCK fields.

Something like this perhaps:

[activity-node-creator-link] has just sent [field_image-filefield-view] on [activity-node-link]
<img src="[site-url]/sites/localhost.drupal/files/imagecache/thumb_40x40/[field_image-filefield-filepath]" />

Since I prepared lots of templates, I want it done before reaching Views. When I am on Views, I want to grab the generic activity messages, without bothering much about individual fields anymore. Just trying to be efficient with lots of messages :) Perhaps I just I need more tokens related to imagecache paths. Otherwise, node relationship is the way to go.

What bothered me, without exportable capabilitiy, is I have to rewrite lots of "sites/localhost.drupal" into new url when moving sites to live.

Thanks

Scott Reynolds’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

ahh interesting. Ya you know what your doing. I am working on: #463854: Generate activity on a current site so you could actually rebuild all activity again, especially if you change your imagecache preset.

Problem with exportable is that we use Actions and triggers and they are part of Core and arn't written with exportable behavior in mind.

gausarts’s picture

Okay. Tracking on the mentioned issue. Thanks