[solved] Gallery - show only subgalleries?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
HoofArted
Forum Members
Forum Members
Posts: 26
Joined: Sun Jul 22, 2012 1:11 am

[solved] Gallery - show only subgalleries?

Post by HoofArted »

I am using the latest version of the Gallery: http://dev.cmsmadesimple.org/project/files/726 and CMSMS ver. 1.10.3

By default by inserting a {gallery} smarty into html it shows all the items in the default galleries, writting out "0 images" when there aren't any photos in the gallery. Since the site I am building, will have 10+ galleries I basically want all of them to be on the main site of the gallery. Practically none of them will be subgallery, but I am forced to include them as subgalleries. Adding different {gallery} smarties isn't a solution, because this gallery will be edited by a HTML non educated user, so it everything has to be easy to use.

I could set a special template just for the first site, erase the part that prints out the '0 pictures' message and that would visually solve the problem, but that's really clumsy and I would rather use more elegant approach.
Last edited by HoofArted on Sat Aug 11, 2012 11:27 pm, edited 1 time in total.
Jean le Chauve

Re: Gallery - show only subgalleries?

Post by Jean le Chauve »

You should use if statement :
Fancybox : the gallery "container" with 0 image is "Artistes"

Code: Select all

<div class="gallery">
{if $gallerytitle neq 'Artistes'}
{if !empty($module_message)}<h4>{$module_message|escape}</h4>{/if}
{if !empty($gallerytitle)}<h3>{$gallerytitle}</h3>{/if}
{if !empty($gallerycomment)}<div class="gallerycomment">{$gallerycomment}</div>{/if}
<p>{$imagecount}</p>
{/if}
HoofArted
Forum Members
Forum Members
Posts: 26
Joined: Sun Jul 22, 2012 1:11 am

Re: Gallery - show only subgalleries?

Post by HoofArted »

Did it my own way, but thank you anyway. :)
Post Reply

Return to “Modules/Add-Ons”