[Zope] ZPT: string: arrays. How to?
Geir Bækholt
Geir Bækholt <geirh@funcom.com>
Thu, 10 Oct 2002 16:10:20 +0200
on or about, Thursday, October 10, 2002, we have reason to believe
that vsbabu@vsbabu.org wrote something along the lines of :
vvo> Quick question:
vvo> I've an array ARRAY. How can I print its first (or nth) element in a=20
vvo> ZPT string: expression =3F
vvo> string: myurl=3Fvar=3D${ARRAY/3}
vvo> string: myurl=3Fvar=3D${ARRAY[3]}
vvo> string: myurl=3Fvar=3D$ARRAY[3]
do a define first :
<a
tal:define=3D"mySlice python:ARRAY[3]"
tal:attributes=3D"href string:myurl=3Fvar=3D${mySlice}">
LINK
</a>
:)
hth
--=20
Geir B=E6kholt geir@funcom.com
Zopatista , tools-developer
Product Operations
Funcom Oslo