This patch allows the ability to override the imagecache for a imagefield.

To use it:
[node:123 imagecache=feildname:imagecache:link_type:index]

imagecache for $node->fieldname[index]

Example:
[node:123 imagecache=field_image:thumbnail:link]

This takes $node->field_image[0] and uses the thumbnail imagecache to display an links back to the file.

link type can be "default" or "link". Default is just the image, link has a link back to the full size image.

Link type and index are both optional. Link typ defaults to "default" and index defaults to "0"

Cheers,
Neil

CommentFileSizeAuthor
InsertNode-imagecache.patch2.62 KBindytechcook

Comments

AlexisWilke’s picture

Status: Needs review » Fixed

Okay, I have made some changes and put that in. I replaced the name from imagecache to imagefield, it seems to make more sense to me, what do you think? (although, imagecache=...; will still work.)

Let me know whether it works for you.

Thank you.
Alexis Wilke

P.S. This patch was better, you used -du, but somehow some parts were missing.

indytechcook’s picture

Thanks you. YOu made my life much easier by committing these :)

I will test later today once the dev package is released.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.