Forums / Setup & design / 3.1 -> design/demo/templates/slideshow.tpl (demo version). Set the image size to original or create a custom size ? Any suggestions ?

3.1 -> design/demo/templates/slideshow.tpl (demo version). Set the image size to original or create a custom size ? Any suggestions ?

Author Message

laurent le cadet

Monday 07 July 2003 6:42:30 am

Hi,

It don't seems to be possible to set the image size to original instead of large.

{node_view_gui view=large content_node=$Child:item}

Is there a way to do it ?
What is the "reference" size use for ?

I tryed also to create a new size "xlarge" modifying kernel/classes/datatypes/ezimage/ezimage.php this way :

---------
function hasAttribute( $attr )
{
return $attr == "mime_type_category" or $attr == "mime_type_part" or eZPersistentObject::hasAttribute( $attr ) or
$attr == "small" or $attr == "large" or $attr == "medium" or $attr == "xlarge" or $attr == "reference" or $attr == "original";
}

-------

case "small":
case "medium":
case "large":
case "xlarge":
case "reference":
case "original":

-------

else if ( $attr == "xlarge" )
{
$width = $ini->variable( "ImageSettings" , "XlargeSizeWidth" );
$height = $ini->variable( "ImageSettings" , "XlargeSizeHeight" );
}

-------

in site.ini I add this :

-------
[ImageSettings]

XlargeSizeWidth=600
XlargeSizeHeight=600
-------

in slideshow.tpl :

-------
{node_view_gui view=large content_node=$Child:item}
-------
Clear cahes...
No result. Wasn't it good ?