[Product-Developers] Re: Vary the display view by url/domain

Martin Aspeli optilude+lists at gmail.com
Fri May 22 00:47:26 UTC 2009


David Bain wrote:
> Martin,
> Four months ago I'd be googling all over the place to understand your
> comment. I understand conceptually what you're talking about, so
> that's progress. I'm sure it's about 10 lines of code.
> 
> Any examples of this technique that you can point to? or best phrases to google?
> 
> Hopefully, I'll be able to implement that stuff without blinking in
> the near future.
> I'm keeping your suggestion as my plan B.

Heh. :)

Look at plone.browserlayer or plone.theme. Both of those are basically 
just an event handler that does an alsoProvides() on the request based 
on some condition. You can a similar handler.

Martin

-- 
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book





More information about the Product-Developers mailing list