Hector,

Godefroid is right. These four variables are there.

The thing is that to access variables sent as parameters when calling a page
template as a method, you need to use 'options'.

<p tal:content="options/viewlet/id">

Carlos de la Guardia

On Jan 17, 2008 8:49 PM, Héctor Velarde <[EMAIL PROTECTED]> wrote:

> Godefroid Chapelle wrote:
> >> is there a way to know the name of the navigation page object inside
> >> the viewlet?
> >
> > Inside a viewlet, you have access to the following preset variables :
> >
> > slot, slots, composite, viewlet.
> >
> > IIRC composite is the navigation page itself.
>
> Godefroid:
>
> I've been checking the source code and testing this in many ways for
> more than an hour and I don't find the way to access those preset
> variables.
>
> none of these work:
>
> <p tal:content="composite" />
> <p tal:content="context/composite" />
> <p tal:content="python:getattr(context,'composite',None)" />
>
> could you please give me a clue?
>
> saludos
>
> _______________________________________________
> Product-Developers mailing list
> [email protected]
> http://lists.plone.org/mailman/listinfo/product-developers
>
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to