Forum OpenACS Q&A: Re: Random photo from photo-album?

Collapse
Posted by Dave Bauer on
RObert,

Pass in the package_id to the include template to limit to one package instance.

<include src="ramdom-photo" package_id="12345">

Or slightly more user friendly, pass in the url relative to the subsite root to the photo album instance to the include, and have the include determine the package id for the query.
<include src="random-photo" package="my_photos">