Author
|
Message
|
enigmista enigmista
|
Friday 05 September 2003 4:19:51 am
{let children=fetch('content',list,hash(parent_node_id,231))} {section name=Child loop=$children max=3} *** ?? ***
{/section} {/let}
How can i display article image? And thrumbnails? Tnz
|
Alex Jones
|
Friday 05 September 2003 6:17:41 am
Try: {attribute_view_gui attribute=$:item.data_map.image image_class=small} You can change the image_class to determine the size of the image. Alex
Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]
<i>When in doubt, clear the cache.</i>
|
enigmista enigmista
|
Friday 05 September 2003 6:34:53 am
{let children=fetch('content',list,hash(parent_node_id,231))} {section name=Child loop=$children max=3} {attribute_view_gui attribute=$:item.data_map.image image_class=small}
{/section} {/let} Prints nothing... 231 contains 4 articles with image...
|
Alex Jones
|
Friday 05 September 2003 7:27:46 am
Oops, try $:Child insted of $:item. Sorry, Alex
Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]
<i>When in doubt, clear the cache.</i>
|
enigmista enigmista
|
Friday 05 September 2003 8:05:59 am
{let children=fetch('content',list,hash(parent_node_id,231))} {section name=Child loop=$children max=3} {attribute_view_gui attribute=$:Child.data_map.image image_class=small}
{/section} {/let} Doesn't work :°°°
|
Víctor Déniz
|
Friday 05 September 2003 5:05:51 pm
Hi enigmista. I don't remember well the attribute_view_gui syntax, but I'm sure how reference the variable in a loop:
{let children=fetch('content',list,hash(parent_node_id,231))}
{section name=Child loop=$children max=3}
{attribute_view_gui attribute=$Child:item.data_map.image image_class=small}
{/section} {/let} The namespace before the variable. I have used it; if it doesn't work say me for looking the correct one. See you soon.
|