php - Returning an image cached image field in a Drupal 7 node template -
I have attached the icon for the categorization conditions and reference the word in the node:
< Code> field_accreditation_icon is the field on the taxonomic term is the field on the The correct icon is displayed by placing it in node.tpl.php: How do I present the icon as the image capture preset 'medium'? Thank you! You will need to get Yuri for that image, then create image URL with theme, Using image uri By field_accreditation node.
& lt ;? Php $ term = taxonomy_term_load ($ node-> field_accreditation ['und'] [0] ['tid']); $ Result = field_view_field ('taxonomy_term', $ word, 'field_accreditation_icon'); Resonance render ($ result); ? & Gt;
& lt ;? Php // $ img_uri will print the image from the image printing Yuri value '& lt; Img src = "'.image_style_url (" medium ", $ img_uri).' '/ & Gt;';? & Gt;
taxonomy_term_load ($ tid);
Comments
Post a Comment