How to zoom when click on a product thumbnail ?

Author Message

Yann Decam

Saturday 17 March 2007 9:07:16 am

Hello everybody,

I'm searching a way to have a zoom when clicked on the thumbnail uploaded in the product content for a shopping website.

I've read several post on that this one particularty :

http://ez.no/community/forum/developer/display_large_image_on_click_small_image/re_display_large_image_on_click_small_image__1

But as i'm starting with EZ, i don't even know where to put this kind of portion code. What tpl is used for that ?
If someone can put me on the right way, that would be great.

Ekkehard Dörre

Sunday 18 March 2007 2:09:08 am

You can put template debug on:

http://ez.no/doc/ez_publish/technical_manual/3_8/installation/troubleshooting
http://ez.no/doc/ez_publish/technical_manual/3_8/reference/configuration_files/site_ini/debugsettings

then you see which template is used.

This template you can override and put the code inside.

Or you can use this
http://ez.no/community/contribs/applications/illightbox2

and change it for the product template.

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Ekkehard Dörre

Sunday 18 March 2007 2:13:56 am

Or you can use this:

http://ez.no/community/contribs/examples/ezpopup

one main thing is, which template is used and understanding the override system.

For templates:
http://ez.no/doc/ez_publish/technical_manual/3_8/templates/the_template_override_system

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Yann Decam

Monday 19 March 2007 4:43:07 pm

Thanks Ekkee for your complete post. Argh...The learning curve witth EZ is quite long and complex.
Regarding what we discussed, i used the debug function and found the product.tpl to be modified.But It seems the file can't be modified directly directly from the debug list of template founded. Have you ever seen this problem ?

For the overrides, i'll do it directly in the admin inrterface. I've read the documentation on this topic but it's not very clear. I've created a new surcharged file for Siteaccess.
My questions is how tell in the override.ini.append.php that it has to use the new override fille. I do not use rules and only priority.
Thanks for help by advance.
Patrice.

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 15:57:52
Script start
Timing: Jan 18 2025 15:57:52
Module start 'layout'
Timing: Jan 18 2025 15:57:52
Module start 'content'
Timing: Jan 18 2025 15:57:53
Module end 'content'
Timing: Jan 18 2025 15:57:53
Script end

Main resources:

Total runtime1.4263 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 589.1719152.6406
Module start 'layout' 0.00690.0025 741.812539.4766
Module start 'content' 0.00951.4152 781.2891554.5859
Module end 'content' 1.42470.0016 1,335.875012.1250
Script end 1.4263  1,348.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2186160.0002
Check MTime0.00120.0852160.0001
Mysql Total
Database connection0.00130.091510.0013
Mysqli_queries1.364995.6954600.0227
Looping result0.00060.0444580.0000
Template Total1.386797.220.6934
Template load0.00240.170520.0012
Template processing1.384397.051120.6921
Template load and register function0.00020.016810.0002
states
state_id_array0.00110.080410.0011
state_identifier_array0.00190.131020.0009
Override
Cache load0.00170.1210350.0000
Sytem overhead
Fetch class attribute can translate value0.00160.110920.0008
Fetch class attribute name0.00130.093950.0003
XML
Image XML parsing0.00250.175020.0012
class_abstraction
Instantiating content class attribute0.00000.000860.0000
General
dbfile0.00230.1631160.0001
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs