[Zope] DTML-IN Next question

Joshua Brauer joshua@brauer.org
Sun, 5 Dec 1999 11:58:05 -0700


I've got a photo gallery setup and want a way to preload the next image. Currently the "gallery" page iterates over the folder and posts the pictures. 

I'm using the code below to try and have it load the next image, but without success.  (On a seperate note how do I get the ID of the item within the dtml-in construct. document_id returns the ID of the current document so I've set ID's=titles and use the title in this instance.)


<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>
___________________________________________
		Joshua Brauer
	              joshua@brauer.org
	          http://www.brauer.org
___________________________________________