Wednesday 14 February 2007 7:39:04 am
This does not work! Maybe my first post was not clear..sorry
1. I have a gallery set up with some pictures.
2. This gallery is referenced by an article, as an Object relation.
3. So gallery is an attribute of an article object. 3. When I reference the gallery in the article full view template with attribute_view_gui I can see the first image of the gallery, but I cannot retrieve the proper url for displaying the whole gallery. What I need is a generic url to gallery in the article class: My code in the template:
{if $node.object.data_map.galerie.has_content}
{def $audi=fetch('content', 'node', hash('node_id' , 265) ) } <div class="attribute-long"> <p><a href={$audi.url_alias|ezurl()}>{attribute_view_gui attribute=$node.object.data_map.galerie}</a></p>
</div>
{/if} The variable $audi is a direct fetch of the gallery and therefore I can retrieve a working url with url_alias. BUT: I don't need no $audi variable, I need a generic variable. so i can get the correct url from $node.object.data_map.galerie (a object relation in the article class) hope it is clearer now. thanks
|