[Product-Developers] [Collage] Browser view lookup using a particular browser layer?

Marcos Romero marcos.romero at inter-cultura.com
Wed Jun 15 11:47:08 UTC 2011


Andreas

I didn't understood it very well.

Are you willing to use a custom browser view (that happens to be a copy 
of "standard" with an extra div) **inside** collage?

Or do you need to use that custom browser view outside collage?

Regards

*Marcos F. Romero*
Responsable de Desarrollo
Inter-Cultura

marcos.romero at inter-cultura.com <mailto:marcos.romero at inter-cultura.com>
www.inter-cultura.com <http://www.inter-cultura.com/>
+54 11 4542-8299


On 14/06/2011 22:10, Andreas Jung wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> For Collage I have the requirement for a new display option for
> arbitrary pieces of content used within a Collage instance where
> the related content piece should be rendered using the "standard"
> browser view configured in Collage for this particular content-type but
> with an outer DIV with a special class.
>
> Registering an additional view my-view is not the problem...the problem
> is how to call to get hold of the "standard" browser view from within
> the browser view class implementing "my-view". To be more clear:
>
> How can I lookup a named view ('standard in this case) for an object
> (aka 'context'), the current request *and* a specific browser layer
> (ICollageBrowserLayer in this case)?
>
> The standard approaches using restrictedTraverse() and getMultiAdapter()
> don't take the browser layer into account..any idea how to solve this?
>
> - -aj
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQGUBAEBAgAGBQJN+AZ0AAoJEADcfz7u4AZj1YMLv1sX/jDccxwl9ew9wP7SO19M
> urhV3KLT2OD2k0/fUCIvr5U5hgAuGr591EWuU6AG5cHwsCTbo8Q4/z35JEIWR1Vt
> uhJVWudRGkYrMkVm7PJvEJTJqFeNGD4A93zMRSM9k/PgiPt2NHAwe/nPI9nUk7vG
> UgdiZ4NzgPhsX5mQgqZZnp3FH+TNpRcHYz2Ipz7QM90A+RqYmjdLpQX+SMmIyCY+
> H7PLwSw1oO7M5g6iTnLKbTVp0J+izn7x2P+w8AgT4w6C6BVFFqvqGAPegYBRJdut
> qO0X05ruWNsOwnIZWJ8mbzdehn4MUzt0uKFFNbSOPxo0RczBv6XUDM+NegKaE943
> qWLz1SS3V81VONXOSN/1WFvhRyMIsCWFOaxOg9rUSOMbBqeD0P+rkQA8kCD93CFO
> t/UCWt95H3k6kwKHsttUgGfl0tSMtJFbzTd5JVRasaXAVB18GXNvXBcfz9an86DL
> VrEhYwWaO3wyZTI9F6QEfSEyRlFkj/I=
> =mDVf
> -----END PGP SIGNATURE-----
>
>
> _______________________________________________
> Product-Developers mailing list
> Product-Developers at lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20110615/58be54f6/attachment.html>


More information about the Product-Developers mailing list