cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Hartmann <andr...@apache.org>
Subject Re: choose a random image
Date Tue, 14 Oct 2003 13:16:15 GMT
Upayavira wrote:

> Andreas Hartmann wrote:
> 
[...]

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

This would be nice indeed.

But in this special case - how do I pass the number of the files
found by the directory generator to the input module?

I guess the XSLT calculation method is quite suitable
for this very application.

Andreas



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


Mime
View raw message