1 Nov 2008 10:02
Re: r23053 - in Plone/trunk
David Glick wrote: > Author: davisagli > Date: Sat Nov 1 07:26:33 2008 > New Revision: 23053 > > Since we ripped out the template globals we're missing this IViewView > marker on the view, which is important b/c the content action menus > are registered to it. is there a better way to do this? should we > deprecate IViewView since it only matters for the content actions > viewlet in OOTB Plone? The way this interface is hacked into templates is definitely a no-go. The only sane solution I can see, is to have the IViewView interface be provided by the view, which is featuring the specific template. This does require each template, that wants to use this particular feature, to be a view-driven template. For Plone trunk that is a perfectly fine requirement. For Plone itself this means to move the templates from the plone_content skins layer into ATContentTypes/browser and let them be ViewPageTemplateFiles. Moving those templates into ATCT is on my todo list for a while anyways. But anyone feel free to do that before I have the time ;) Hanno -------------------------------------------------------------------------(Continue reading)

RSS Feed