Remove Gallery Name and Number of Images from Gallery

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
webguru
Forum Members
Forum Members
Posts: 97
Joined: Thu May 08, 2014 6:18 pm

Remove Gallery Name and Number of Images from Gallery

Post by webguru »

I installed the Gallery module and it works nice and easily.

On the page where the gallery is, I would like the Gallery name and Number of Images to NOT show. Just the thumbnails.

I am using the AE-Gallery, CMSMS 2.1.4 and I assume you want to see the template.

Code: Select all

<div class="gallery">
{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>
<div class="pagenavigation">
{if $pages > 1}
<div class="prevpage">{$prevpage}</div>
<div class="nextpage">{$nextpage}</div>
{/if}
{if !$hideparentlink && !empty($parentlink)}<div class="parentlink">{$parentlink}</div>{/if}
{if $pages > 1}<div class="pagelinks">{$pagelinks}</div>{/if}
</div>

{assign var='dirs' value=''}
{assign var='imgs' value=''}
{foreach from=$images item=image}
{if $image->isdir}
{assign var='dirs' value="$dirs
	<div class=\"img\">
		<a href=\"`$image->file`\" title=\"`$image->title`\"><img src=\"`$image->thumb`\" alt=\"`$image->titlename`\" /></a><br />
		`$image->titlename`
	</div>
"}
{else}
{capture name=images assign=imgs}
{$imgs}
        <li>
          <a href="{$image->file}">
            <img src="{$image->thumb}" title="{$image->title}" alt="{if empty($image->comment)}{$image->titlename}{else}{$image->comment}{/if}" longdesc="{* you can put a url here using a custom field. This wil generate a link in the middle of the big image *}" class="image{$image->fileid}">
          </a>
        </li>
{/capture}
{/if}
{/foreach}


{if !empty($imgs)}
<div class="ae-gallery">
  <div class="ae-image-wrapper">
  </div>
  <div class="ae-controls">
  </div>
  <div class="ae-nav">
    <div class="ae-thumbs">
      <ul class="ae-thumb-list">
{$imgs}
      </ul>
    </div>
  </div>
</div>
{/if}

{$dirs}
<div class="galleryclear">&nbsp;</div>
</div>
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: Remove Gallery Name and Number of Images from Gallery

Post by Jos »

Just delete this part of your template:

Code: Select all

{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>
webguru
Forum Members
Forum Members
Posts: 97
Joined: Thu May 08, 2014 6:18 pm

Re: Remove Gallery Name and Number of Images from Gallery

Post by webguru »

Much appreciated!
Post Reply

Return to “Modules/Add-Ons”