[Product-Developers] getting CompositePack's Navigation Page from a viewlet

Carlos de la Guardia carlos.delaguardia at gmail.com
Fri Jan 18 04:29:26 UTC 2008


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 <hvelarde at jornada.com.mx> 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
> Product-Developers at lists.plone.org
> http://lists.plone.org/mailman/listinfo/product-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20080117/fba187cf/attachment.html>


More information about the Product-Developers mailing list