Hide Photoname but show Album Name

philipp.mueller

Joined: 2008-02-16
Posts: 3
Posted: Mon, 2008-08-04 21:54

I put this code in my carbon theme album.tpl for not showing the image name. Now it also removed the name of my albums. Is there any possibilty that it shows the album title but not the image title

best Phil

{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}

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25961
Posted: Mon, 2008-08-04 22:04

this is the bit of code you want to remove from album.tpl just the bold:

			{if $child.canContainChildren}
			<table cellpadding="0" cellspacing="0">
			  <tr>
			    <td class="giTitleIcon">
			      <img src="{g->url href="themes/carbon/images/album.gif"}" alt=""/>
			    </td>
			    <td>
			      <p class="giTitle">{$child.title|markup}</p>
			    </td>
			  </tr>
			</table>
			{else}
			<p class="giTitle">{$child.title|markup}</p>
			{/if}
		      {/if}

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
philipp.mueller

Joined: 2008-02-16
Posts: 3
Posted: Mon, 2008-08-04 23:19

sweet you are the best dave !
best phil