[Zope] Page Template help

Philipp von Weitershausen philipp at weitershausen.de
Mon Aug 11 10:09:12 EDT 2008


Garito wrote:
> Use: 
> /path/to/the/object/with/${some/magic/variables}/to/solve/some/paths/in/a/simplest/way

Path expressions already support this.

   tal:define="pathel some/magic/variables;
               obj    path/to/the/object/with/?pathel/to/solve/some/..."

So basically in TALES path expressions you can say foo/?bar and the 
value of the 'bar' variable will be used to traverse the next step from 
'foo'.



More information about the Zope mailing list