Put your logic into a PythonScript where you fill up a list of n entries. You should be able to program this with 3-4 lines of code if you know how to program in Python. -aj --On Samstag, 8. November 2003 20:12 Uhr +0100 Martin Koekenberg <zope@digital-adventures.nl> wrote:
Hello,
That is a solution but that gives me 4 random links an not set of 4 random links without double entry's.
Martin Koekenberg
P.S. I unsubscribed me from zope-dev... I've nothing to do there. Just start to developing in Zope not Developing zope ;-)
----- Original Message ----- From: "Dylan Reinhardt" <zope@dylanreinhardt.com> To: "Martin Koekenberg" <zope@digital-adventures.nl> Sent: Saturday, November 08, 2003 7:37 PM Subject: Re: [Zope] How to get 4 Random DTML Documents
On Sat, 2003-11-08 at 10:30, Martin Koekenberg wrote:
Hello, With "<dtml-with expr="_.whrandom.choice(links.objectValues('DTML Document'))">" I can gert a radom DTML Dotument.
But how can I et 4 random documents with a probely a <dtml-in size =4....... statement ?
<dtml-in "_.range(4)">
And please don't send this kind of question to zope-dev.
HTH,
Dylan
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )