Page 1 of 1

Gallery Style

Posted: Wed Jan 05, 2011 10:22 pm
by maryjane
I am using the Gallery Module which works really well, thanks.
When the thumbnails come in, there a big gap between the number of images and the first image. Is there a way to change that.
I have looked at the code but am afraid to change anything without being sure.

Also, is there a way to substitute a thumbnail for the one that is automatically generated. Some of my images get cropped in weird places.

Thanks for all of your help.
MJ

Re: Gallery Style

Posted: Wed Jan 05, 2011 10:35 pm
by M@rtijn
Do you have a link to the gallery?

Re: Gallery Style

Posted: Thu Jan 06, 2011 12:00 am
by maryjane
Oh sorry! The web site is
Maryjaneparkerart.com/cmsms/
Just click in gallery in the menu.
Thanks

Re: Gallery Style

Posted: Thu Jan 06, 2011 1:10 pm
by M@rtijn
That theme looks good! 8)

The thing is: In the standard Gallery template there is a div called 'pagenavigation'. When you have more pictures in a gallery it will spread it over a number of pages. (You can set the number of images per page in the template)

On this page, there are 8 albums and therefore it doesn't show a second page, but the div 'pagenavigation' (with a height declaration of 50 pixels) is still present. This is what gives your the space between the number of images and the images itself.

I myself have move the pagenavigation to the bottom of my gallery page. Another solution would be to change the if call around the div.

Change this:
<div class="pagenavigation">
{if $pages > 1}
<div class="prevpage">{$prevpage}</div>
<div class="nextpage">{$nextpage}</div>
{/if}
{if !$hideparentlink && !empty($parentlink)}<div class="parentlink">{$parentlink}</div>{/if}
{if $pages > 1}<div class="pagelinks">{$pagelinks}</div>{/if}
</div>
To:
{if $pages > 1}
<div class="pagenavigation">
<div class="prevpage">{$prevpage}</div>
<div class="nextpage">{$nextpage}</div>
{if !$hideparentlink && !empty($parentlink)}<div class="parentlink">{$parentlink}</div>{/if}
{if $pages > 1}<div class="pagelinks">{$pagelinks}</div>{/if}
</div>
{/if}
Hope this helps!

Re: Gallery Style

Posted: Thu Jan 06, 2011 4:15 pm
by maryjane
Thanks alot. That did the trick!!
MJ