[Zope] dtml-in question

Joshua Brauer joshua@brauer.org
Tue, 7 Dec 1999 13:09:52 -0700


Two questions:

	1) I've got a photo album online and I'd like to pre-load the next image. The "Album" is a dtml-in that iterates over a folder of images, but I can't find any way to get the next image to load (I thought of two images per batch, but I want the next image to be a dot (1 pixel by 1 pixel) so I can't treat all images in the batch the same way).

	2) I've set the title and ID of each image to be the same so that I can use <dtml-var title> as a part of the URL (IMG SRC=<dtml-var title>). When I use ID instead of title this property is blank... Is there a simpler way to get the ID so I don't have to duplicate the data?



<dtml-in "objectItems(['Image'])" next size=1 start=qs orphan=1 sort="monthorder">
<dtml-in next-batch>
<IMG SRC="monthPhoto/<dtml-var title>" HEIGHT="<dtml-var batch-start-var-height>" width="<dtml-var batch-start-var-width>">
</dtml-in>
</dtml-in>


(the "Album" is online now, by the way.... http://imh.wwe.com/calendar2000/)

                                    # # #

_____________________________________________
Joshua Brauer                                         Box 915
http://www.brauer.org                          Fort Collins, CO 80522
Fax: (419) 793-4120
_____________________________________________
In flying I have learned that carelessness and overconfidence are 
usually far more dangerous than deliberately accepted risks. 
          -- Wilbur Wright in a letter to his father, September 1900 
____________________________________________________