Page 1 of 1

How can I stop Gallery from displaying image titles?

Posted: Sat Oct 25, 2014 11:32 pm
by earcandy
I am using Buddyslider Gallery on my page and cant figure out how to prevent it from showing the filename of the displayed images.

Here is the Gallery template:

Code: Select all

<div class="gallery">
{if !empty($module_message)}<h4>{$module_message|escape}</h4>{/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>

{foreach from=$images item=image}
	<div class="img">
	{if $image->isdir}
		<a href="{$image->file}" title="{$image->titlename}"><img src="{root_url}/{$image->thumb|escape:'url'|replace:'%2F':'/'}" alt="{$image->titlename}" /></a><br />
		{$image->titlename}
	{else}
   <a class="group" href="{$image->file|escape:'url'|replace:'%2F':'/'}" title="{$image->titlename}" rel="gallery-{$galleryid}"><img src="{$image->thumb|escape:'url'|replace:'%2F':'/'}" alt="{$image->titlename}" /></a>
	{/if}
	</div>
{/foreach}
<div class="galleryclear">&nbsp;</div>
</div>
Appreciate any help I can get!

Re: How can I stop Gallery from displaying image titles?

Posted: Sat Oct 25, 2014 11:45 pm
by paulbaker
2 options:

1. IIRC Gallery puts filename in the Title field when you upload pics. So go to Content -> Gallery -> Click gallery -> Remove text in Title field -> hit Save.

2. Remove some/all of the {$image->titlename} from your template.

Re: How can I stop Gallery from displaying image titles?

Posted: Sun Oct 26, 2014 6:15 am
by Rolf
Change {$image->titlename} into {$image->title}