[SOLVED] Gallery-module - Multiple gallerys in one web page?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
urheat
Forum Members
Forum Members
Posts: 243
Joined: Sat Oct 17, 2009 6:50 am
Location: Finland

[SOLVED] Gallery-module - Multiple gallerys in one web page?

Post by urheat »

Hi!

I’m using Gallery-module and it’s great. Is there a way to show multiple gallerys in one page?
I mean like this:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam ipsum lacus, consequat sit amet laoreet eget, ultricies eget neque.

thumb1 thumb2 thumb3

Proin dignissim, nunc et posuere cursus, enim sem dictum leo, ut egestas ante risus et libero. Aenean tempus pharetra purus id posuere. Phasellus pharetra nisi ac neque porttitor egestas. Vivamus vel velit augue.

thumb1 thumb2 thumb3



If I click one thumbnail, I see overall six photos, ‘cause the rel-tag is the same.

Thanks!
Last edited by urheat on Sat Jan 29, 2011 11:33 am, edited 1 time in total.
User avatar
jd447
Forum Members
Forum Members
Posts: 134
Joined: Wed Jun 20, 2007 7:06 am
Location: geneva

Re: Gallery-module - Multiple gallerys in one web page?

Post by jd447 »

i'm not sure i understand your question. but try to change the div id in the template and duplicate it. (i marked them with HERE)

Code: Select all

<div id="HERE]">
{foreach from=$images item=image}
	{if !$image->isdir}
		<img src="{$image->thumb}" alt="{$image->titlename}" />
	{/if}
{/foreach}
</div>
and the in the js

Code: Select all

<__script__ type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></__script>
<__script__ type="text/javascript" src="modules/Gallery/templates/cycle/jquery.cycle.lite.1.0.min.js"></__script>

<__script__ type="text/javascript">
$(document).ready(function() {
	$('#HERE').cycle({ 
		delay:  -2000, 
		timeout:  4000, 
		speed: 2000
	});
});
</__script>
and the css

Code: Select all

/* height and width should be the same as the thumbnail sizes */
#HERE {
  width: 370px;
  height: 220px;
}
and you should call the jquery only once on a page. if i'm right... you should rather install {jquerytools} and suppress the jquery call in the template.
i guess there's a finer solution with smarty... but it should do the trick
Jos
Support Guru
Support Guru
Posts: 4017
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: Gallery-module - Multiple gallerys in one web page?

Post by Jos »

urheat
Forum Members
Forum Members
Posts: 243
Joined: Sat Oct 17, 2009 6:50 am
Location: Finland

Re: [SOLVED] Gallery-module - Multiple gallerys in one web p

Post by urheat »

Thanks!

This did the trick:

Code: Select all

rel="gallery-{$galleryid}"
I know I tried that before but I have to had messed too much with CSS.
Post Reply

Return to “Modules/Add-Ons”