Jump to content


EtoGalGallery 1.1 snippet features and use


  • You cannot reply to this topic
No replies to this topic

#1 mikef

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,551 posts

Posted 13 May 2006 - 02:35 PM

Snippet name: EtoGalGallery
Author: mikef
Version: 1.1 (Beta)

&#91
Prerequisites:[/u]]
  • Minimum Etomite version: 0.6.1
  • Etogal: A copy of Etogal version 1.0 or later is also required, as this snippet uses the etogal database and image store, and has no management capabilities of its own.
This snippet was created to make it easier to produce customised displays for the EtoGal gallery snippet. It is based on the EtoGalThumb snippet, but in addition displays a selected image full sizze at the top of the page. (By defining the thumb style to do nothing, you can display just the top image.)

&#91
Features:[/u]]
  • display EtoGal images or galleries on a different page from the gallery id
  • select specific images to display by id
  • select specific galleries to display by gallery page id
  • flexible image sorting for thumbnails (but not ranadom)
  • (relatively) easy generation of your own display styles (needs HTML knowledge rather than PHP for thumbnails, possibly a little PHP knowledge as well for the top image)
There are demos for each of the inbuilt display formats at the EtoGalCallery page on the Etogal test site.
&#91
Installation instructions:[/u]]
  • Download the latest EtoGalGallery.php file from the Etogal download area and add it to your installation as a snippet (copy the contents into new snippet).
  • That's it!

&#91
Options you can pass to the EtoGalGallery Snippet:[/u]]
As this is an extension of the EtoGalThumb snippet, almost all of the EtogalThumb snippet functions are available.
The following are not supported:
  • only,not
  • addback
The following are changed:
  • link - page id parameter to be used in links (%%link%% parameter) this is forced to the current page
  • gal - gallery from which images are to be shown (optional, can be a comma separated list) defaults to current page
  • count - number of images to use defaults to 9999
  • order_by - defaults to 'gal_id,id'
In addition to parameters passed to the snippet in the code, the id for the image to be displayed at the top of the page is passed in the URL as the 'pic' parameter (eg http://www.yoursite.com/gallery.html?pic=99 ). If no pic is specified (or the one passed is not amongst those selected for the page) an image is selected at random from those in the selection for the page.

This snippet uses the same set of replaceable parameters as the EtoGalThumb snippet for building the thumbnail section.


Edited by mikef, 13 May 2006 - 02:36 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users