combine sections slideshow

combine sections slideshow

Tuesday 06 April 2004 10:26:41 am - 2 replies

Author Message

Martin Ulrich

Tuesday 06 April 2004 10:31:50 am

The following, two functions, for example does NOT work:

slide=fetch( content, tree, list_count hash( parent_node_id, ...

_______________________

http://artenic.de ARTENIC - Publishing mit allen Mitteln!

Tore Skobba

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

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.