cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira ...@upaya.co.uk>
Subject Re: choose a random image
Date Tue, 14 Oct 2003 13:13:19 GMT
Andreas Hartmann wrote:

> 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.

Fair enough. Surely it shouldn't be hard to extend the random input 
module to be able to handle {random:10} or {random:20}? Assuming someone 
needs it. Or even {random:1-20}.

Upayavira



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message