[ZPT] Re: Using Script to Select Macro

Tonico Strasser contact_tonico at yahoo.de
Thu Aug 5 07:23:58 EDT 2004


Doug Tillman wrote:

> if (linktype=="User"):
>     return "here/navlinks/macros/userlinks"
> elif (linktype=="Silo"):
>     return "here/navlinks/macros/silolinks"
> elif (linktype=="BuildType"):
>     return "here/navlinks/macros/buildtypelinks"

Would this work for you?

if (linktype=='User'):
     return context.navlinks.macros['userlinks']

Tonico



More information about the ZPT mailing list