On Wednesday 29 November 2006 12:37, Dennis Schulz wrote:
> is it possible to call widget with a specific name directly instead of
> running through all on a repeat loop?
> for example
>   <div tal:define="name string:1;
>                   w1 view/widgets.get(name)" >
> I saw that there is a get method but I can't access it form the page
> template.

Yep, you can. I always do this:

<tal:block define="widget nocall:view/widgets/text">
  <div metal:use-macro="context/@@form_macros/widget_row" />

(Of course, I really want to change this code to using content 
providers/viewlets, but this is somewhat older code.)

Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
Zope3-users mailing list

Reply via email to