Tuesday 06 April 2004 11:03:07 am
Hi
I am not sure what you want. But you can not count each image, or you can count it, but it would always be one and as such not make much sense.
>
>slide=fetch( content, tree, list_count hash( parent_node_id,
> This will not work, as you basically are asking for two values, the number of children and an array with all the children (including children children etc.. tree).
fetch (content, tree_count, hash (... will return the number of children, including childrins childrens etc.
fetch (content, list_count, hash (.. will return the number of children of THIS node
while fetch (content, tree OR fetch (content, list will return an array with all the objects. Hope it helps, if not you need to elobrate on your problem.
If you want to count each image then one solution could be like this
{let count=0
images_list=fetch (content, tree, ...) }
{section loop=$images_list}
{set i=i:inc} (Increase i with one for each image)
{$item.data_map.image.content[small_h].full_path}
<p>Image number: {$i} </p>
{/section}
{/let} Note, it is pseudo code and does not work as it is.
Cheers Tore
|