Snippet: Template logic to fetch and display content objects image attribute content

Table of contents:

Submited via forums by Lukasz Serwatka

Solution

Template code which fetchs an image from my image gallery. The image is different depending on what node the user is currently viewing.

{let myimage=fetch( 'content', 'node', 
                    hash( 'node_id', 123))}
 
{attribute_view_gui attribute=$myimage.object.data_map.image}
 
{/let}
 

References