Overview -------- This sample template shows an example of how the {storeglobal} and {getglobal} template functions can be used. In this case, assume that we want to generate two pages that have the same galleries, but on the first page the galleries will be displayed with their preview thumbnails and on the second page the galleries will be displayed with their descriptions. Template Code Page #1 --------------------- {galleries var=$galleries amount=30 description=true preview=true type=any category=MIXED getnew=true allowused=true order=date_approved reorder=date_displayed DESC, date_approved} {storeglobal name=thumb_galleries value=$galleries}
|
{foreach from=$galleries var=$gallery}
{$gallery.description|htmlspecialchars} {/foreach} |