path expression for fill-slot
is it possible to have the slotname as variable like: <span metal:fill-slot="python:'slot_%s' % here.slotNr" /> which does not work unfortunately. -- Mit freundlichen Grüßen Joachim Schmitz ...................................................................... AixtraWare eK ..Joachim Schmitz ..www.aixtraware.de ..t: +49-2464-8851 Hüsgenstr. 33a .....d-52457 Aldenhoven .............f: +49-2464-905163
Joachim, Thursday, April 22, 2004, 9:29:43 PM, you wrote:
is it possible to have the slotname as variable like: <span metal:fill-slot="python:'slot_%s' % here.slotNr" /> which does not work unfortunately.
You could try <untested> <span tal:define="slotname string:slot_${here/slotNr}"> <span metal:fill-slot="?slotname" /> </span> </untested> -- __________________________________________________________________ Geir Bækholt · Interaction Engineer · Plone Solutions Development · Training · Support · http://www.plonesolutions.com __________________________________________________________________
Joachim Schmitz wrote at 2004-4-22 21:29 +0200:
is it possible to have the slotname as variable like:
<span metal:fill-slot="python:'slot_%s' % here.slotNr" />
which does not work unfortunately.
It must be literal. There is no way to let the slot be computed. -- Dieter
participants (3)
-
Dieter Maurer -
Geir Bækholt -
Joachim Schmitz