[Zope3-Users] zpt using the skin

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Jun 23 07:32:19 EDT 2005


On Saturday 18 June 2005 12:25, Robert-Reinder Nederhoed wrote:
> How can I access the standard_macros from a page template that I add
> using the management interface?
>
>   <html
>     metal:use-macro="views/standard_macros/view">
>
> results in the following error
>    Module zope.pagetemplate.pagetemplate, line 118, in pt_render
>   Warning: Macro expansion failed
>   Warning: exceptions.KeyError: 'views'
>
> can anyone help me out?
>
> My goal is to present content in a slot in the current default skin.
> Should be possible I think.

(I remember answering this somewhere already, but I do it again for 
completion.)

Use "context/@@standard_macros/view".

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


More information about the Zope3-users mailing list