[Zope] path expression for fill-slot

Geir Bækholt lists at elvix.com
Fri Apr 23 06:05:49 EDT 2004


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
__________________________________________________________________




More information about the Zope mailing list