"Advanced gallery" is available only under J! 1.5 and can be used if you want to change HTML layout provided by "Simple gallery" layout type. In most cases, "Simple gallery" can be used instead of "Advanced gallery". "Simple gallery" layout type is easy to configure and doesn't require any additional code.
"Advanced gallery" provides ability to use "repeater" control. Sample code can be found below:
Code: |
{repeater}
{headertemplate}
<table>
{/headertemplate}
{rowtemplate itemCount="2" rowClass="odd;even"}
<tr class="{$rowClass}">
{celltemplate}
<td>
<div>{$data:prettyimage}</div>
<div>{$data:Title}</div>
</td>
{/celltemplate}
{emptycelltemplate}
<td> </td>
{/emptycelltemplate}
</tr>
{/rowtemplate}
{footertemplate}
</table>
{/footertemplate}
{emptytemplate}
No items found
{/emptytemplate}
{/repeater}
|
Between {repeater} and {/repeater} tags are located specific repeater's tags. {headertemplate} and {footertemplate} sections contains header and footer. {emptytemplate} is used when image source doesn't contain images. {rowtemplate} contains row template and "itemCount" attribute provides ability to specify how many image will be shown per row.
Regards,
ARI Soft