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
Posts: 27300
Not tested:
gallery2/modules/imageblock/templates/
ImageBlock.tpl
{$block.item.title|markup}
to
{$block.item.parent.title|markup}
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 94
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
Posts: 4342
Did you exactly follow the instructions at the top of the .tpl file? And flush the template cache?
Posts: 94
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
Posts: 31
Hello , can we have solution for this please
Posts: 8339
try mediaBlock instead.
-s