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
Posts: 22892
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
Posts: 15
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.
Posts: 22892
FAQ: How can I clear cached data?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 15
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