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. {if !empty($child.title)} 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 |

Posts: 16152
just remove:
{$child.title|markup}Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 5
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.
Posts: 16152
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
Posts: 5
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!
Posts: 16152
Are you using a album frame? URL?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 5
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!
Posts: 16152
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
Posts: 5
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!
Posts: 6
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!
Posts: 16152
Not at the URL provided. I suspect that is why it is not working.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team