Tuesday 21 November 2006 4:09:36 am
Hi There, I hope somebody can help me. I have created few images in a folder named as banner from the administration interface. For eg. Home
Banners
|->image1
|->image2 |->image3 From the user site i am trying to fetch the images by using the code below which is obviously in a loop
{let randomised=fetch('content','tree', hash('parent_node_id', '<folder_node_id>', class_filter_type, "include", class_filter_array, array(<class_id>)))|shuffle}
{section loop=$randomised max=1}
{attribute_view_gui attribute=$:item.object.data_map.image image_class=banner}
{/section}
{/let}
where as the image.ini.append.php for user access is
<?php /* #?ini charset="iso-8859-1"?
[AliasSettings]
AliasList[]
AliasList[]=small
AliasList[]=medium
AliasList[]=listitem
AliasList[]=articleimage
AliasList[]=articlethumbnail
AliasList[]=gallerythumbnail
AliasList[]=imagelarge
AliasList[]=large
AliasList[]=rss
AliasList[]=logo
AliasList[]=banner
[small]
Reference=
Filters[]
Filters[]=geometry/scaledownonly=100;160
[medium]
Reference=
Filters[]
Filters[]=geometry/scaledownonly=200;290
[large]
Reference=
Filters[]
Filters[]=geometry/scaledownonly=360;440
[rss]
Reference=
Filters[]
Filters[]=geometry/scale=88;31
[logo]
Reference=
Filters[]
Filters[]=geometry/scaledownonly=250;58
[listitem]
Reference=
Filters[]
Filters[]=geometry/scaledownonly=110;170
[articleimage]
Reference=
Filters[]
Filters[]=geometry/scaledownonly=170;350
[articlethumbnail]
Reference=
Filters[]
Filters[]=geometry/scaledownonly=70;150
[gallerythumbnail]
Reference=
Filters[]
Filters[]=geometry/scaledownonly=70;150
[imagelarge]
Reference=
Filters[]
Filters[]=geometry/scaledownonly=360;440
[banner]
Reference=
Filters[]
Filters[]=geometry/scaledownonly=560;70
*/ ?>
I am not getting any thing. Please help. only image_class=large, medium, small working. No luck with image_class=original as well.
Cheers Smith
|