[cvs] [Wiki] changed: AnselModule

Michael Rubinsky mrubinsk at horde.org
Mon Jan 11 18:46:55 UTC 2010


mrubinsk  Mon, 11 Jan 2010 13:46:55 -0500

Modified page: http://wiki.horde.org/AnselModule
New Revision:  1.7
Change log:  final two examples

@@ -36,9 +36,22 @@

  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 3 thumbnail images from the //venice//  
gallery, starting at the second image in the gallery. It will be  
displayed in the gallery's style. The thumbnails will not be linked to  
anything.
+<code>
+<script type="text/javascript"  
src="http://domain.com/horde/ansel/xrequest.php?
+requestType=Embed/gallery_slug=venice/container=anseldiv2/thumbsize=prettythumb/
+start=2/count=3/hidelinks=true"></script><div id="anseldiv2"></div>
+</code>

++++++ A single, screen sized image
+This will embed a singe, screen sized image with no links.
+<code>
+<script type="text/javascript"  
src="http://domain.com/horde/ansel/xrequest.php?requestType=Embed/
+thumbsize=screen/images=7199/container=ansel4d83671f5c8dc8262f0db4c9aab6f20e/hidelinks=true">
+<div id="ansel4d83671f5c8dc8262f0db4c9aab6f20e"></div>
+</code>
  +++++ Arbitrary images from any number of galleries
  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/



More information about the cvs mailing list