Code: Select all
{foreach from=$images item="image"}
{if $image->fields.used_in.value =="Bathroom"}
{/if}
{/foreach}
Code: Select all
{foreach from=$images item="image"}
{if $image->fields.used_in.value =="Bathroom"}
{/if}
{/foreach}
Not sure if it then contains links to the images itself too.(optional) action="default" - Override the default action. Use it in combination with the above parameters. Possible values are:
'showrandom' - to display a set of random thumb-images (applies only to the images which are stored in the database, defaults to a number of 6 images). Use '/*' after the directoryname in the dir parameter to include images from subdirectories
'showlatest' - to display the most recently added images (applies only to the images which are stored in the database, defaults to a number of 6 images) The dir parameter can be set, or the default Gallery-root will be used. Subdirectories are automatically included
'showlatestdir' - to display a set of random thumb-images from the most recently added directory (applies only to the images which are stored in the database, defaults to a number of 6 images)
'gallerytree' - to display links to all galleries and subgalleries. This uses the gallerytree template by default, but this can be changed with the template parameter. Use the dir parameter to display a subset of the gallerytree. (applies only to the galleries which are stored in the database)
Note that images are only stored in the database when the specific gallery is visited in the admin or frontend.
Code: Select all
{Gallery dir="Projects/Project X" template="Galleriffic"}
Code: Select all
{Gallery dir="Projects" template="Galleriffic"}
That makes no sense I think. A link to sub folder implies a reload of the page with the sub gallery.I think there is no code in the plugin to handle links of sub folders and I couldn't change original code because I don't have any knowledge other than some very basics.
Code: Select all
{Gallery dir='Projects/' template="Galleriffic"}
Code: Select all
{Gallery dir='Kitchen/English-Walnut' template="Galleriffic"}
Code: Select all
<div class="navigation col-md-4" id="thumbs" >
<ul class="thumbs noscript">
{foreach from=$images item="image"}
{if $image->isdir}
<a class="thumb " name="{$image->title}" href="{$image->file}" title="{$image->titlename}"><img src="{$image->thumb|escape:'url'|replace:'%2F':'/'}" alt="{$image->titlename}" /></a><br />
{$image->titlename}
{else}
<li>
<a class="thumb img-responsive" name="{$image->title}" href="{$image->file}" title="{$image->title}" ><img src="{$image->thumb|escape:'url'|replace:'%2F':'/' }" alt="{$image->titlename}" class="img-thumbnail" /></a>
<div class="col-md-9 col-md-offset-1 caption">
<h1 class="text-info">{$image->fields.name.value} </h1> </div>
</li>{/if}
{/foreach}
</ul>
</div>