Fethcing a image in gallery and displaing it with lightbox2

Author Message

H. K.

Wednesday 14 November 2007 2:18:18 am

Hi, I am using the lightbox2 extension and want to use the lightbox2 gallery on my front page. Or simply what i am after is to fetch a child of a parent node.

This is the code i am currently using to fetch the url, title and "description image" of a gallery.

<div class="left3">
{let news_listx4=fetch( content, tree, hash( parent_node_id,
2,

sort_by, array( published,
false() ),
'class_filter_type', 'include',

'class_filter_array', array( 22 ),
sort_by, array( published, false())))}

{section var=newsx4 max=1 loop=$news_listx4 sequence=array(bglight,bgdark)}

<div class="image">
<a href={$newsx4.item.url_alias|ezurl}> {attribute_view_gui image_class=small attribute=$newsx4.object.data_map.image.content.data_map.image} </a>
</div>
<div class="title">

<a href={$newsx4.item.url_alias|ezurl}> {$newsx4.item.name|wash}</a>

</div>

</a>
{/section}
{/let}

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:51:43
Script start
Timing: Jan 18 2025 15:51:43
Module start 'layout'
Timing: Jan 18 2025 15:51:43
Module start 'content'
Timing: Jan 18 2025 15:51:44
Module end 'content'
Timing: Jan 18 2025 15:51:44
Script end

Main resources:

Total runtime0.8058 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 588.1719152.6563
Module start 'layout' 0.00450.0020 740.828139.5078
Module start 'content' 0.00650.7979 780.3359405.9766
Module end 'content' 0.80440.0014 1,186.31258.0938
Script end 0.8058  1,194.4063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.3738160.0002
Check MTime0.00130.1611160.0001
Mysql Total
Database connection0.00060.070610.0006
Mysqli_queries0.769295.4581460.0167
Looping result0.00050.0564440.0000
Template Total0.780296.820.3901
Template load0.00200.250820.0010
Template processing0.778196.563920.3891
Template load and register function0.00010.014910.0001
states
state_id_array0.00090.107210.0009
state_identifier_array0.00100.122320.0005
Override
Cache load0.00160.1989240.0001
Sytem overhead
Fetch class attribute can translate value0.00090.107710.0009
Fetch class attribute name0.00090.112010.0009
XML
Image XML parsing0.00010.014410.0001
class_abstraction
Instantiating content class attribute0.00000.001110.0000
General
dbfile0.00060.0719100.0001
String conversion0.00000.000940.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
1content/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
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs