[Zope3-Users] Re: How to make a new namespace for pagetemplates?
FB
fbo2 at gmx.net
Fri Sep 8 10:20:47 EDT 2006
Hi,
On Fri, Sep 08, 2006 at 01:45:45PM +0200, Philipp von Weitershausen wrote:
[snip]
> Write a new TALES expression type (like string: or python:) that constructs link tags.
> This could like:
>
> <a tal:replace="structure link:context/url context/urldescription">
> link goes here
> </a>
>
> The link: expression would split the argument string, take the first part as the URL and
> the second one as the link description. Both would be fed through the PathExpression so
> that they're evaluated.
>
> Custom TALES expression types are components providing
> zope.tales.interfaces.ITALESExpression. Look at zope.tales.expressions for the
> implementation of the standard TALES expressions.
Perfect :-) . That's what I'll do.
Thank you,
Frank
More information about the Zope3-users
mailing list