[Zope] random object with properties

Morten W. Petersen morten@esol.no
21 Nov 2000 21:26:53 +0100


[Kevin Worth]

| <dtml-var expr="_.whrandom.choice(objectValues('Photo'))">
| <dtml-if caption><dtml-var caption></dtml-if>

[,..]

| What am I missing here?

Maybe this will work:

	<dtml-let random_image="_.whrandom.choice(objectValues('Photo'))">
		<dtml-var random_image>
		<dtml-if caption><dtml-var caption></dtml-if>
	</dtml-let>

HTH.

-Morten