Enhancement Request for Image Block Module (display album name)

pushback

Joined: 2002-09-11
Posts: 94
Posted: Thu, 2010-05-20 01:32

Any way to add the option to show the album name that contains the photo? I have "Title" turned on, but I think a lot of people (like me) may make an album titled, for example, "San Francisco" and then dump 75 San Francisco pics in there without naming them all. So ... now I get this really nice picture of the Golden Gate Bridge at sunset and underneath it says "IMG_4095".

Just sayin ...

It would be a nice enhancement!

Thanks

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2010-05-20 05:21

Not tested:
gallery2/modules/imageblock/templates/
ImageBlock.tpl

{$block.item.title|markup}
to
{$block.item.parent.title|markup}

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
pushback

Joined: 2002-09-11
Posts: 94
Posted: Sat, 2010-06-19 23:31

Hi Dave, Thanks for the help!

I have this change implemented now in:

../modules/imageblock/templates/ImageBlock.tpl

but see absolutely no change in behaviour. Here's the new snippet:

{if isset($ImageBlockData.show.title) && isset($block.item.title)}
<h4 class="giDescription">
{$block.item.parent.title|markup}
</h4>
{/if}

Does that look correct?

John
www.worldaccordingtojohn.com

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Sat, 2010-06-19 23:42

Did you exactly follow the instructions at the top of the .tpl file? And flush the template cache?

 
pushback

Joined: 2002-09-11
Posts: 94
Posted: Sun, 2010-06-20 00:14

OK, did that. Thanks for pointing it out. I have flushed the template cache so now I see no title on the block at all. There is no image nor album name. Only the image date and #of views still show.

Any other things I can try to get the album name to show under the random image block?

Thanks in advance.

John

www.worldaccordingtojohn.com

 
gaurav10feb

Joined: 2010-08-24
Posts: 31
Posted: Tue, 2010-08-24 00:13

Hello , can we have solution for this please

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2010-08-24 00:26

try mediaBlock instead.

-s