Tuesday 06 April 2004 10:26:41 am
for an idiot like me, who never learned any basics its a problem: for my javascript- slideshow I want the path to the image and separate count of the image
that should be the result:
[1] Number = var/storage//var/gallery/storage/images-versioned/... 1.png
[2] Number = var/storage//var/gallery/storage/images-versioned/... 2.png [3] Number = var/storage//var/gallery/storage/images-versioned/... 3.png the following loops me the path of image - (works fine, no problem):
slide=fetch( content, tree, hash( parent_node_id, $node.node_id,
limit, $image_limit,
offset, $view_parameters.offset,
class_filter_type, include,
class_filter_array, array( 'image' ),
sort_by, array( 'published', false() ) ) )
{section var=image loop=$slide}
{$image.item.data_map.image.content[small_h].full_path}
{/section}
And the following loops me the image count - dito no problem:
number=fetch( content, list_count, hash( parent_node_id, $node.node_id,
limit, $image_limit,
offset, $view_parameters.offset,
class_filter_type, include,
class_filter_array, array( 'image' ),
sort_by, array( 'published', false() ) ) )
{section var=image loop=$number}
[ {$image} ]
{/section}
But what I want is, these both result in one line, like: [1] number = var/storage/var/gallery/storage/images-versioned/... 1.png
I havent any idear what i should write. How is it possible to fetch two different arrays together, resp. loop two results in one line.
How to combine these two results in one line? Perhabs I have to combine the two sections somehow, but dont know how. perhaps there is a nice human beeing out there, who gives a tip. thanks in advance. :-) Greetings Sebastian
_______________________
http://artenic.de ARTENIC - Publishing mit allen Mitteln!
|