Closed (fixed)
Project:
InsertNode
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Mar 2010 at 17:26 UTC
Updated:
5 Apr 2010 at 11:40 UTC
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
| Comment | File | Size | Author |
|---|---|---|---|
| InsertNode-imagecache.patch | 2.62 KB | indytechcook |
Comments
Comment #1
AlexisWilke commentedOkay, 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.
Comment #2
indytechcook commentedThanks you. YOu made my life much easier by committing these :)
I will test later today once the dev package is released.