[Zope-CMF] Accessing PageMacros

Andrew Sawyers andrew at sawdog.com
Thu Mar 11 10:19:44 EST 2010


Heya Charlie,

The way I do this is register a view for * with the name I'm using for the
macro:
<browser:page
    for="*"
    name="foo"
    permission="zope2.View"
    template="../path/to/my_template.pt"
/>

Then in in the template:
<metal:foo use-macro="here/@@foo/macro_to_use">

Not sure if that's the SOP or what...but works for me.

Cheers,

Andrew


On 3/11/10 7:12 AM, "Charlie Clark" <charlie at begeistert.org> wrote:

> Hi,

I think I'm probably making this more complicated than it need be but I'm
> 
stumped.

I have a form that uses five.formlib.formbase.PageForm, ie. the
> default  
zope.formlib PageForm. How can I make use of the macros in the
> template,  
ie. what is the lookup for the macros? @@form_macros only seems to
> have  
widget_macros and addform and I'd like the whole page and just make use
> of  
the slots. <metal fill-slot="extra_info">...

Zope 3 skin declarations
> aren't my strong suit and I think they just wrap  
the meta-class stuff which
> has my head spinning.

Charlie
-- 
Charlie Clark
Helmholtzstr.
> 20
Düsseldorf
D- 40215
Tel: +49-211-938-5360
GSM:
> +49-178-782-6226
_______________________________________________
Zope-CMF
> maillist  -  
> Zope-CMF at zope.org
https://mail.zope.org/mailman/listinfo/zope-cmf

See
> https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests




More information about the Zope-CMF mailing list