Ok, let me post my templates so you can have a look if it works for you:
Gallery template 'gallerytree' (= DEFAULT!)
Code: Select all
{foreach from=$images item=image name=img}
<div class="{if $smarty.foreach.img.index > 0}hide{else}item{foreach from=$fields item=f key=fieldalias}{if $f.value} {$fieldalias}{/if}{/foreach}{/if}"><a class="fancybox" rel="gallery{$galleryid}" href="{root_url}/{$image->file}" title=""><div style="display:none" class="galtitle"><b>{$image->title}</b><br />{$gallerycomment}</div>
{if $smarty.foreach.img.index == 0}<img src="{root_url}/{$image->thumb|escape:'url'|replace:'%2F':'/'}" alt="" />{/if}</a>{if $smarty.foreach.img.index == 0}<p>{$gallerytitle}</p>{/if}</div>
{*assign var='g_prevdepth' value=$image->depth*}
{/foreach}
Gallery template 'gallerytree2'
Code: Select all
{assign var="org_gallerydir" value=$gallerydir}
{foreach from=$images item=image name=img}
{Gallery dir="$org_gallerydir/`$image->filename`"}
{/foreach}
Gallery call from template or content:
Note that 'Gallery' should only contain sub-galleries (one level) and that 'Gallery' itself should NOT contain images. Template above does NOT check that.
Rest is javascript / css stuff.