Le 5 oct. 2010 à 08:48, Radim Novotny a écrit :

> Plone 4 supports disabling left/right portlet slot or any other manager 
> by setting
> 
> disable_<manager.name> to True/False/None
> 
> in the request. My theme (xdv based) requires this slot on all pages, 
> including search results, login, password reset etc. I'd appreciate a 
> global setting which always enables left slot and always disables right 
> slot. I don't want to customize a bunch of templates just due to this 
> requirement.
> 
> Is there any way how to do it except monkeypatching plone.app.layout 
> view's have_portlets ? What do other thinks about it ?

Perhaps not the best solution but what about adding in ZMI a traversal hook 
(access rule) in the Plone that sets in request 'disable_xxx' to (whatever 
suited) ?

HTH
-- 
Gilles Lenfant

> 

> 
> -- 
> Radim
> 
> _______________________________________________
> 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