Closed (fixed)
Project:
Imagecache Token
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Apr 2012 at 07:03 UTC
Updated:
22 Jun 2013 at 08:23 UTC
Jump to comment: Most recent file
Comments
Comment #1
merlinofchaos commentedThis patch fixes it to support any entity type, using token.module's entity mapping. While I haven't rigorously tested this, it does work with an image field on a term entity.
It also has the beneficial side effect of fixing notices caused by blindly setting the image-field type on tokens for fields that aren't actually on the nodes (because they're only on other entity types).
Comment #2
silkogelman commentedit seems to work well.
Tested by checking if Taxonomy tokens show up in the Metatag Token list (they did, screenshots attached).
I haven't been able to actually make a og:image metatag with a image-token show up, but that could be a Metatag issue (or a 'me' issue)
Thanks for this patch!
Comment #3
seandunaway commentedWorks great, let's get it in. :)
Comment #4
yannickooWorks fine!
Comment #5
Pls commentedWorks great, not sure why there's no official release with this patch. Let's do it! Would love to hear a word from module maintainer. Thanks.
Comment #6
askibinski commentedPatch works great, nice little module!
Comment #7
jwilson3How about entities attached to entities (eg, field_collections)? This patch doesn't work for my specific case of wanting to grab the first image of a slideshow in a taxonomy term via a multiple-item field collection.
eg [term:field-slideshow-slides:1:field_slide_image:my_image_style_preset_name]
I guess this is sufficiently special-case that it should be a separate issue.
Comment #8
bartezz commentedWorks like a charm!
Comment #9
hydra commentedPatch doesn't apply with the "latest" dev version. Rerolled it. Otherwise the Patch does what I would expect the module to do, thanks earl!
@maintainer: Please commit this! It's RTBC now for quit a lot of time.
Comment #10
hydra commentednevermind, ignore #9, I wasn't on the right branch >.< stupid!
Confirm that #1 is working!
Comment #11
hydra commentedCommit 2a1a8ae on 7.x-1.x, Thanks!