Image as ezbinaryfile and image variation

Author Message

laurent le cadet

Tuesday 08 June 2010 5:44:22 am

Hi,

I would like to use a mix of ezbinaryfile and ezimage datatypes to have the benefit of both of them :

  • image variations (which can served lightbox)
  • Download link (for original image size with no right clic)
  • Download count

I can't find such a datatype and as the image are large and I want to use ezmultiupload for mass upload I don't want to extend the image classe with a file attribute.

Could someone give me a hint (Custom datatype ? I'm not a PHP superstar :).

Laurent

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 30 2025 21:31:28
Script start
Timing: Jan 30 2025 21:31:28
Module start 'layout'
Timing: Jan 30 2025 21:31:28
Module start 'content'
Timing: Jan 30 2025 21:31:28
Module end 'content'
Timing: Jan 30 2025 21:31:28
Script end

Main resources:

Total runtime0.0221 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 588.2656151.2266
Module start 'layout' 0.00570.0036 739.4922220.7188
Module start 'content' 0.00930.0113 960.2109993.9297
Module end 'content' 0.02060.0015 1,954.140629.9922
Script end 0.0221  1,984.1328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002310.5109140.0002
Check MTime0.00104.3937140.0001
Mysql Total
Database connection0.00115.077110.0011
Mysqli_queries0.003415.456530.0011
Looping result0.00000.045310.0000
Template Total0.00104.510.0010
Template load0.00083.525910.0008
Template processing0.00020.980910.0002
Override
Cache load0.00052.441510.0005
General
dbfile0.00021.089880.0000
String conversion0.00000.029140.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