[Wiki] changed: AnselModule
Michael Rubinsky <[email protected]>
| Newsgroups | gmane.comp.horde.cvs |
|---|---|
| Message-ID | <[email protected]> |
mrubinsk Mon, 11 Jan 2010 13:22:25 -0500 Modified page: http://wiki.horde.org/AnselModule New Revision: 1.3 Change log: First example @@ -25,8 +25,17 @@ Ansel supports embedding it's content in external websites. For examples, see http://rubinskyfamily.com and http://mrubinsk.blogspot.com. ++++ Examples * A single image that links to an ansel gallery: + +<code> +<script src="http://domain.com/horde/ansel/xrequest.php?requestType=Embed/gallery_view=GalleryLink/ +gallery_slug=gallery_one:gallery_two/container=example/thumbsize=prettythumb/style=ansel_polaroid" type="text/javascript"> +<div id="example"></div> +</code> + +In the above, the gallery_slug parameter is a colon delimited list of gallery slugs. You could also use a colon delimited list of gallery ids by using the paremeter gallery_id in place of gallery_slug. The //container// parameter is the dom id of the element where the content should be embedded. The parameter //style// is a style name (from ansel/config/styles.php) to use. + * A series of images from a single gallery: * Arbitrary images from any number of galleries In addition to the main choices listed above, the following pairs can be added to the request's parameters -- To unsubscribe, mail: [email protected]