Alex Clark wrote:
Hi all,

I understand (from PPD) I can reassign viewlets (e.g. move personal_bar from top to contentviews), but if I just want to call another view's methods from within "my view" what do I do?

E.g. I want to call view.portal_tabs from within the footer.

I was thinking something like tal:define="my_view @@sections_view" but it seems 
you can't
call viewlets this way.

I don't think you can, but you can look up the viewlet in your view class as a named multi-adapter on (context, request, view, viewlet_manager) - you'll need to use 'self' for the view and look up the viewlet manager as a multi-adapter on (context, request, view) in the first place.

Martin

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


_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to