[cvs] [Wiki] changed: AnselModule
Michael Rubinsky
mrubinsk at horde.org
Mon Jan 11 18:33:51 UTC 2010
mrubinsk Mon, 11 Jan 2010 13:33:51 -0500
Modified page: http://wiki.horde.org/AnselModule
New Revision: 1.4
Change log: Second example
@@ -25,9 +25,9 @@
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:
-
+The following will embed the key images (the image shown in the
gallery thumbnail) from two different galleries and they will be
styled as polaroid stacks. Each image will be linked to the gallery
view for each 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>
@@ -35,8 +35,14 @@
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:
+The following will embed 6 different images, each from a different
gallery. Clicking on each image will open a lightbox overlay
containing the selected picture, with navigation controls to view the
rest of the embedded images on the page.
+<code>
+<script
src="http://domain.com/horde/ansel/xrequest.php?requestType=Embed/images=5122:1851:5153:2072:3049:4894/
+container=multiple_example/thumbsize=thumb/lightbox=true"
type="text/javascript">
+<div id="multiple_example"></div>
+</code>
* 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
More information about the cvs
mailing list