Wednesday 08 June 2011 6:55:53 am
Hi, I have an ezimagegallery that I combine with ezmultiupload, and to my horror some images gets skipped in the next/prev images button. I list out the array of images in that particular gallery and they jumbles some of the images, effectively skipping those. I also experienced that the next array just deleted one image when I listed them out. Anybody has anything to help me with here? the code for next and prev array:
{def $all_images = fetch( 'content', 'list',
hash( 'parent_node_id', $node.parent_node_id,
'class_filter_type', 'include',
'class_filter_array', array( 'image' ),
'limit', '20',
'attribute_filter', array( 'and',
array( $sort_column, $sort_order|choose( '>', '<' ), $sort_column_value ) ),
'sort_by', array( $sort_column, $sort_order|not ) ) )}
{foreach $all_images as $indexnr=>$currimg}
{$indexnr}: {$currimg.name}<br />
{/foreach}
<br/>
{def $all_images_next = fetch( 'content', 'list',
hash( 'parent_node_id', $node.parent_node_id,
'class_filter_type', 'include',
'class_filter_array', array( 'image' ),
'limit', '20',
'attribute_filter', array( 'and',
array( $sort_column, $sort_order|choose( '<', '>' ), $sort_column_value ) ),
'sort_by', array( $sort_column, $sort_order ) ) )}
{foreach $all_images_next as $indexnr2=>$currimg2}
{$indexnr2}: {$currimg2.name}<br />
{/foreach}
|