|
Thursday 02 November 2006 12:23:26 pm
Comment8391
Hi Sagar
OK, since you sue attribute_view_gui to display the image attribute the actual display uses the template \design\standard\templates\content\datatype\view\ezimage.tpl (or an override). Here you can find the lines
{section show=$href}<a href={$href}...{/section}
{section show=and( is_set( $image ), $image )}
...{section show=$href}</a>{/section}
{/section}
Move the first line within the second section
{section show=and( is_set( $image ), $image )}
{section show=$href}<a href={$href}...{/section}
...{section show=$href}</a>{/section}
{/section}
This way you will at least have no problems with the links anymore as they are either not there at all or properly closed. Better yet replace the section with if as section is deprecated, but this is not necessary.
Reagrding the image problem itself: It looks like out of some reasons the different image sizes are not created on your system. If you call up attribute_view_gui with image_class=listitem, ez checks in the image.ini (or one of the append files) for the settings for image class. Then it creates the image using imagemagick or gd and stores it in the same folder as the original pic, just with the name of the image class appended. So you should have a picture http://www.sagarkhushalani.com/var/plain_site/storage/images/photography/shambhala_stupa/beautiful_colours/409-1-eng-GB/beautiful_colours_listitem.jpg So either the image.ini is wrong somehow or ez can not use your image program to convert the images (or I have the imaging system wrong which might well be...). You can test the image.ini quite easily by removing all append files (just rename them) so the default settings from the main image.ini are used. Then use the imageclass=large instead of listitem, clear the cache and try again. If that does still not work, ez cannot access your image converter. First check the path to imagemagick in the image.ini. If that seems to be correct you have to ask your provider. Claudia
|