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}
|