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 ?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 16:28:18
Script start
Timing: Jan 18 2025 16:28:18
Module start 'layout'
Timing: Jan 18 2025 16:28:18
Module start 'content'
Timing: Jan 18 2025 16:28:18
Module end 'content'
Timing: Jan 18 2025 16:28:18
Script end

Main resources:

Total runtime0.0131 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.6719152.7188
Module start 'layout' 0.00520.0024 741.390639.6797
Module start 'content' 0.00760.0040 781.070389.5234
Module end 'content' 0.01160.0015 870.593830.3047
Script end 0.0131  900.8984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002116.3182140.0002
Check MTime0.00107.4673140.0001
Mysql Total
Database connection0.00085.750110.0008
Mysqli_queries0.002116.305530.0007
Looping result0.00000.090710.0000
Template Total0.00129.310.0012
Template load0.00075.026610.0007
Template processing0.00064.266810.0006
Override
Cache load0.00053.619410.0005
General
dbfile0.00021.412680.0000
String conversion0.00000.068940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs