Difficulty removing Image title.

greenteagod

Joined: 2004-05-20
Posts: 38
Posted: Mon, 2011-01-17 03:37

I'm using the matrix template with gallery 2.3.1 Have copied album.tpl to the local directory and have removed the following text in red, but am still unable to get rid of the image title.

	
		{if !empty($child.title)}
		<p class="giTitle">
		  {if $child.canContainChildren && (!isset($theme.params.albumFrame)
		   || $theme.params.albumFrame == $theme.params.itemFrame)}
		    {* Add prefix for albums unless imageframe will differentiate *}
		    {g->text text="Album: %s" arg1=$child.title|markup}
		  {else}
		    {$child.title|markup}
		  {/if}

I still want the album titles to show up, just not the image names/titles. I'm sure I'm overlooking something quite simple here.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2011-01-17 03:45

Make sure to clear your template cache after any template change.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
greenteagod

Joined: 2004-05-20
Posts: 38
Posted: Mon, 2011-01-17 04:56

That was definitely the trick. I seem to have run into an issue with it removing the album titles as well now.

I've done the modification suggested in http://gallery.menalto.com/node/72064 putting this string of code in place of what was in there before.

	{if $theme.params.showItemTitle}		
		{if !empty($child.title)}
			{if $child.canContainChildren}
			<table cellpadding="0" cellspacing="0">
			  <tr>
			    <td class="giTitleIcon">
			      <div class="iconAlbum"></div>
			    </td>
			    <td>
			      <p class="giTitle">{$child.title|markup}</p>
			    </td>
			  </tr>
			</table>
			{else}
			<p class="giTitle">{$child.title|markup}</p>
			{/if}
		{/if}
	{/if}

That posting suggests that it be done in the childs.tpl file which doesn't seem to be part of this theme. Putting that code into albums.tpl removes both the image and album title. I'm just wanting to nuke titles on individual items.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2011-01-17 13:26

instead of monkeying with all that code, try some CSS magic

.giTitle {
    display: none;
}

add a class where needed to differentiate between the album title and item title.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2