Gallery Style

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
maryjane
Forum Members
Forum Members
Posts: 29
Joined: Wed Dec 08, 2010 4:56 pm

Gallery Style

Post 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
User avatar
M@rtijn
Power Poster
Power Poster
Posts: 706
Joined: Sat Nov 14, 2009 4:54 pm

Re: Gallery Style

Post by M@rtijn »

Do you have a link to the gallery?
maryjane
Forum Members
Forum Members
Posts: 29
Joined: Wed Dec 08, 2010 4:56 pm

Re: Gallery Style

Post by maryjane »

Oh sorry! The web site is
Maryjaneparkerart.com/cmsms/
Just click in gallery in the menu.
Thanks
User avatar
M@rtijn
Power Poster
Power Poster
Posts: 706
Joined: Sat Nov 14, 2009 4:54 pm

Re: Gallery Style

Post 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!
maryjane
Forum Members
Forum Members
Posts: 29
Joined: Wed Dec 08, 2010 4:56 pm

Re: Gallery Style

Post by maryjane »

Thanks alot. That did the trick!!
MJ
Post Reply

Return to “Modules/Add-Ons”