I've created a "Product" content type, which contains a "Term Reference" field called "Features", allowing me to check several features that the product has (using my "Features" taxonomy).
I've also added a "field_feature_icon" image field in the Taxonomy (so each feature can have an uploaded image).
I can easily display the product's features (in text/link form only) in my theme using:
print render($content['field_product_features']);
However, I would like to show the feature_icon image instead, and I'm having trouble getting this working. I've tried the following:
- create a block view of type "Term" showing the "field_feature_icon" field. This shows ALL taxonomy term icons, not those related to the product. I've tried adding arguments/filters, but can't get it to pick out just the features checked for the product in "field_product_features".
- create a block view of Type "Node", but the only Taxonomy field options I have are: All Terms, Term, Term ID, Description - none of these shows the "field_feature_icon".
- struggling with documentation on D7 functions, but I can see that $content['field_product_features'] contains the taxonomy term IDs and field_feature_icon values, so I'd just need to know the function to get that particular value, and print render the icons only.