Monday 19 December 2005 7:35:11 pm
Hello, I implemented the suffle operator to fetch images. I would like to add the link to the node id of the image on it. I tried that:
{let randomised_array=fetch('content','tree', hash('parent_node_id', '73', class_filter_type, "include", class_filter_array, array(5)))|shuffle}
{section name=random loop=$randomised_array max=3}
<a href={$node.node_id}><img src={$random:item.object.data_map.image.content[medium].full_path|ezroot} border="1"></a>
{node_view_gui view=element content_node=$random:item}
{/section}
{/let}
But of course, it can certainly not linked something randomly selected especially if it's a group of three. Ok I know the issue but I have no clue on how to solve it. Does anybody did implement something similar???
Thanks for your help, Chris
|