Hide title on photo pages

Oliver Cruzcampo

Joined: 2008-03-15
Posts: 15
Posted: Sat, 2009-10-24 23:00

Hi,

I am using Gallery 2.3 with the Matrix theme.
I want to show the title of items ONLY for albums, not for the photo pages. How can I do that?

Quote:
{g->block type="core.ItemInfo"
item=$child
showDate=false
showOwner=$showOwner
showSize=false
showViewCount=false
showSummaries=true
class="giInfo"}

This is the code of the album.tpl. I already hid everything else except the item title.

Anyone? Thanks.
Oliver

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22892
Posted: Sat, 2009-10-24 23:09

I am a bit confused as to what you want to do.
Viewing the album page (album.tpl) you have:

		{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}
		</p>
		{/if}

You can remove the bold to remove the title from items.

as for the title of items on the photo page (photo.tpl) it will never have albums so I don't think I understand if the above is not waht you are after.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Oliver Cruzcampo

Joined: 2008-03-15
Posts: 15
Posted: Sat, 2009-10-24 23:36

Hi Dave,

thanks for the quick answer. I removed that line but it still shows the title. Please check here:
http://www.lei-rostock.org/index.php?q=gallery&g2_itemId=1509

I just want to get rid of the "01.jpg" and so on.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22892
Posted: Sun, 2009-10-25 02:44

FAQ: How can I clear cached data?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Oliver Cruzcampo

Joined: 2008-03-15
Posts: 15
Posted: Sun, 2009-10-25 08:57

Hi Dave,

thanks again. Unfortunately, by deleting this line the titles of all subalbums disappear, too. Do you happen to know how to fix that, too? If not I will just copy the title into the "summary" field which I did not deactivate and thus shows up.

Thanks.
Oliver