I have create a new Openlayers data view including content fields "longitude" & "latitude" and node fields "title" and "body". I also add the taxonomy image field to use it in the variable style following this : http://drupal.org/node/754480.
But it didn't works when I put the ${tid}(taxonomy image field) in the externalGraphic field of the OpenLayers style I don't have no more icon for the points in the final preset. I don't know if it is because externalGraphic needs a URL and the taxonomy image field is an image but in that case I don't know how to get the URL in the views.
I don't know if it's the best way to do it but it's the only I found, if you know other or better solution it would be great to.
Ps : sorry for my poor English
Comments
Comment #1
zzolo CreditAttribution: zzolo commentedHi @sebgranel. The externalGraphic needs a full URL. Also, the replacement styling needs to be a single variable and be the name of the field that Views is producing, like ${tid_image_url}.
Comment #2
sebgranel CreditAttribution: sebgranel commentedThank you for the quick answer. Can you please give me some more information?
In views I don't find how to output the taxonomy image field differently than the image so I don't have a good field produced by views. Do you know how to output the image URL ?
Comment #3
zzolo CreditAttribution: zzolo commentedHi @sebgranel. That is the out of the scope of this module. I am not sure what module you are using for images for taxonomy, but it is up to that module to expose the URL in Views. I know imagefield does this.
Comment #4
sebgranel CreditAttribution: sebgranel commentedHi @zzolo. The module I use is Taxonomy image and I think it's impossible to show the URL in views after some search.
So thanks for your help, I will search for another way to do that.
Comment #5
zzolo CreditAttribution: zzolo commentedYou could put in a issue for the Taxonomy Image module to ask for this feature. Good luck.