[Zope3-Users] TAL Macro for Site Root

kevin gill kevin at movieextras.ie
Tue Oct 14 11:29:40 EDT 2008


I have been working with different skins over the past week.

For putting an image onto my page, the ++resource++ TALES expression is
very useful. It substitutes in the hostname, skin name and the path to the
file.

<img tal:attributes="src context/++resource++xxxx/filename" />

Is there a similar expression I can use for arbitrary URLs? I have site
absolute URLs to areas of the site in my global navigation, e.g.
'/events', '/info'. I would like a mechanism to expand these to include
the skin name as the ++resource++ expression does.

Thanks,

Kevin



More information about the Zope3-users mailing list