From: news [mailto:[EMAIL PROTECTED]

> Upayavira wrote:
> > Andreas Hartmann wrote:
> > 
> >>
> >>>> The min and max random number values would be configured in 
> >>>> cocoon.xconf.
> >>>
> >>>
> >>>
> >>> That's the problem then, how do you keep track of a 
> variable number
> >>> of images?
> >>
> >> OK, this is a problem.
> > 
> > No it's not. You just define the input module as many times as you 
> > need
> > with different names and different ranges, random10, random20, etc.
> 
> Yes, but I think it should be possible to select the max 
> number dynamically, depending on the number of images that 
> are located in the directory.

Then I would write my custom input module that asks the database to get
the value for the max number. If performance is important and you don't
want to call your database for every request I would call the database
e.g. every 5 minutes or so.

HTH
Reinhard


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to