Dynamic gallery image thumbnails enlargement

Author Message

Romeo Antony

Tuesday 01 June 2010 1:35:35 am

First upon sorry for this long post. I want to clear everyone who read this issue.That is why I explain in a simple way by lot of steps

1. I want to enlarge thumbnail pictures in a dynmaic gallery block.

In website I have created dynamic gallery block with 3 contents.

It working fine.I can display thumbnail images in site.

for that I created gallery class , in gallery class in gallry class I put images as image class.

In template file of dynamic block this images displayed by

{node_view_gui view='block_item' image_class='block2items1' content_node=$valid_nodes[0]} /*this is for first image thumbnial to display */

To enlarge this displayed thumbnail , my only option is css or javascript.

My issue I will show u by example.

1 option I am trying by css(hover property)

<a class="thumbnail" href="#thumb"><img
src="my image should be here" width="100px" height="66px" border="0"
/><span><img src="media/tree.jpg" /><br />Simply
beautiful.</span></a>

I am taking it from {node_view_gui view='block_item' image_class='block2items1' content_node=$valid_nodes[0]}

So I do not have any <img> attribute in gallry template file to apply css to enlarge it.

2 option if I am trying javascript I need the <img> attribute to apply javascript to enlarge it.

example

<div id="apDiv3"><a href="#" onmouseover="increaseSizeImage('image2');"

onmouseout="decreaseSizeImage('image2');"><img id="image2"

src="rr.jpg" width="100" height="75" alt="color" id="image2" /></a></div>

But in template file I am using

{node_view_gui view='block_item' image_class='block2items1' content_node=$valid_nodes[0]}

that means I do not have <img> attribute.So How do I apply javascript to enlarge it.

My only way is by

<b><span class="line"><a href={"/"|ezurl}><img src={"imagename"|ezimage} /></a>  

But my image is not in ezimage it is an image class and display it by node_view_gui
</span></b>

Anyone who know this please clear me.

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 05:07:08
Script start
Timing: Jan 18 2025 05:07:08
Module start 'layout'
Timing: Jan 18 2025 05:07:08
Module start 'content'
Timing: Jan 18 2025 05:07:08
Module end 'content'
Timing: Jan 18 2025 05:07:08
Script end

Main resources:

Total runtime0.0157 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.0051 588.0469152.6406
Module start 'layout' 0.00510.0031 740.687539.4766
Module start 'content' 0.00810.0050 780.164189.5859
Module end 'content' 0.01320.0025 869.750030.3047
Script end 0.0156  900.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002716.9367140.0002
Check MTime0.00117.3099140.0001
Mysql Total
Database connection0.00084.894010.0008
Mysqli_queries0.002716.985430.0009
Looping result0.00000.083710.0000
Template Total0.001912.010.0019
Template load0.00116.909810.0011
Template processing0.00085.091810.0008
Override
Cache load0.00085.219610.0008
General
dbfile0.00031.603580.0000
String conversion0.00000.051740.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