Removing photo title (caption) but not album title (caption)

JRNeher

Joined: 2008-06-22
Posts: 5
Posted: Sun, 2008-06-22 02:57

First of all I apologize if this has already been posted, but I have searched and have found information getting me close, but not actually accomplishing what I am trying to do.
I want to remove (or hide) all of the filenames (titles) of thousands of already uploaded photos from the individual photos in thumbnail view. The problem is that I want to leave the name of the albums. I have seen many posts that suggest deleting this block of code from album.tpl (I am using the default Matrix theme):

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

This does exactly what I want and removes the filenames under each photo, BUT it also removes the name of all of my albums. Is it possible to accomplish what I am trying to do? I hope that this makes sense. Thanks!

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 14524
Posted: Mon, 2008-06-23 04:32

just remove:
{$child.title|markup}

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
JRNeher

Joined: 2008-06-22
Posts: 5
Posted: Mon, 2008-06-23 11:47

Thanks for your reply Dave. I tried removing only the line above and it produces the same result as before. ALL captions (including album titles) are gone. I only saw this line once in this block, just after {else}. Is there something that I am missing? This is what my "new" block looks like:

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

{/if}
</p>
{/if}

Thanks again for your reply and any further assistance.

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 14524
Posted: Mon, 2008-06-23 12:40

So you are saying removing {$child.title|markup} removes 'Album: BlaBla' as well? How can that be?
Clear cache on the browser, template cache reboot browser..... URL?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
JRNeher

Joined: 2008-06-22
Posts: 5
Posted: Mon, 2008-06-23 12:46

I saw the "Album: ..." section above in the code, but the word 'Album:' never shows up anywhere. The wording under each album, with {$child.title|markup} inserted, is just whatever I call the album, there is no textual indication that it is an album. Any other thoughts?? Thanks again for your continued help!

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 14524
Posted: Mon, 2008-06-23 12:52

Are you using a album frame? URL?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
JRNeher

Joined: 2008-06-22
Posts: 5
Posted: Tue, 2008-06-24 00:41

I do have an album frame. I removed the album frames and it worked just as expected. The word "Album:" showed before each album and only the albums had the captions under them. Is there a way to get this to work using album frames? The url is ****************. Thanks for your quick and helpful responses Dave!

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 14524
Posted: Mon, 2008-06-23 23:20

The author of the album did not want album names displayed when a album frame is used.

See why we ask for a URL or the more info the better. I could have give this link to you and you would have solved this in 1 day:
http://gallery.menalto.com/node/78770#comment-278160

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
JRNeher

Joined: 2008-06-22
Posts: 5
Posted: Tue, 2008-06-24 00:42

That did the trick. Thanks for all of your help Dave. I understand asking for a URL for some situations, I just didn't see where it would be useful in this situation. In any case, thanks again!

Login or register to post comments
gbonato

Joined: 2008-11-02
Posts: 3
Posted: Fri, 2009-01-02 19:57

Hello! I've been using Gallery 2 only for a couple of days.

I would like to have thumbnails with NO caption at all, but album (with frames) with just the album name.

I'm using Matrix and multilanguage (English and Portuguese).

I've tried to follow the instructions, but it didn't work 100%. Can you please explain how to accomplish the goal highlighted above?

Here is a sample of my album: http://www.bonato.cc/fotos/main.php?g2_itemId=279

Thanks!

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 14524
Posted: Fri, 2009-01-02 19:30
Quote:
I'm using Matrix and multilanguage (English and Portuguese).

Not at the URL provided. I suspect that is why it is not working.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments