Which extension should I prefer

Author Message

Romeo Antony

Thursday 24 June 2010 3:43:27 am

I am looking nto create a thumbnail image gallery with scrolling .and when i click on thumb nail i want to see elarges pic.

which extension should i prefer.any documentation

Sandeep Kadam

Friday 02 July 2010 1:46:49 am

I did similar thing without using Extension an my gallery was not an scrolling one.

1. created a folder in my media library to hold my images.
2. Created class similar to images class but with one more image attribute to hold small image.
3.Fetched that images on my Pagelayout using code which is somewhat similar to below code, I have used lyte box functionality for my gallery where 83 is the id of the folder holding images.

{def $photos = fetch(content,list,hash('parent_node_id','83'))}  

{foreach $photos as $photo}  

{if $photo.data_map.small_image.has_content}  

<a href={$photo.data_map.big_image.content['original'].full_path|ezroot()} title="" rel="lytebox[half]"><img border="0" src={$photo.data_map.<strong>small_image</strong>.content['original'].full_path|ezroot()}  /></a>     {/if}

 {/foreach}  

{undef $photos}  

{/if}

this might help you :)

Sandeep

Romeo Antony

Saturday 03 July 2010 10:13:41 pm

Thank you sandeep

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 11:20:54
Script start
Timing: Jan 18 2025 11:20:54
Module start 'layout'
Timing: Jan 18 2025 11:20:54
Module start 'content'
Timing: Jan 18 2025 11:20:54
Module end 'content'
Timing: Jan 18 2025 11:20:54
Script end

Main resources:

Total runtime0.7442 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0080 587.9219152.6250
Module start 'layout' 0.00800.0040 740.546939.4453
Module start 'content' 0.01200.7304 779.9922511.4844
Module end 'content' 0.74250.0017 1,291.476612.1641
Script end 0.7441  1,303.6406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.5916160.0003
Check MTime0.00140.1946160.0001
Mysql Total
Database connection0.00190.252210.0019
Mysqli_queries0.685492.1083570.0120
Looping result0.00050.0679550.0000
Template Total0.704894.720.3524
Template load0.00360.485020.0018
Template processing0.701294.223420.3506
Template load and register function0.00010.016110.0001
states
state_id_array0.00150.205510.0015
state_identifier_array0.00150.200420.0007
Override
Cache load0.00310.4182180.0002
Sytem overhead
Fetch class attribute can translate value0.00070.096720.0004
Fetch class attribute name0.00130.180750.0003
XML
Image XML parsing0.00110.150920.0006
class_abstraction
Instantiating content class attribute0.00000.001560.0000
General
dbfile0.00090.1182220.0000
String conversion0.00000.002040.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs