Jump to content


[query]How to show two galleries on a page


  • You cannot reply to this topic
1 reply to this topic

#1 charismaddux

    Etomite Forum Newbie

  • Member
  • 42 posts

Posted 31 May 2006 - 12:41 AM

View Postmikef, on Dec 17 2005, 08:18 AM, said:

In case anyone else is confused:

Etogalthumb is a separate snippet, that uses the database (and image files) mantained by Etogal.

- it lets you display thumbs from multiple galleries on a single page by making a number of calls to the snippet specifying different page values
Hey Mike, can you give an example of how we would call multiple galleries on a single page. Currently use EtoGal and did like you told me and had a hierachy setup and called the other galleries by using the [[EtoGal?display=childgalleries]] feature. Now I'm looking to have the galleries appear on the left and the title and description appear to the right of the thumbnail like your example on your sample site.

#2 mikef

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,551 posts

Posted 31 May 2006 - 08:47 AM

The easy way is simply to call EtoGalThumb once for each gallery, with a suitable set of parameters.

For example, if
  • you had galleries on pages 75,76 and 77,
  • you wanted to use supplied style 2 (this one)
  • you wanted three random images to be displayed the galleries
  • the page you wanted to go to for the gallery is the page that holds the gallery
you'd include
[[EtoGalThumb?style=2&gal=75&link=75&count=3]]
[[EtoGalThumb?style=2&gal=76&link=76&count=3]]
[[EtoGalThumb?style=2&gal=77&link=77&count=3]]
in the page

That is in essence how my Efikim Galleries page is implemented, though the style used is more complex, and the destination pages (link parameter) are different from the gallery pages.

Note that the style is unlikely to display as youu see it in the test site unless you are using one of the Mollio templates, as the CSS for those templates make quite a lot of changes from default renditions for HTML elements.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users