Products.cmfplone: main_template overrides with z3c.jbot no longer work in Plone 5.2

Created on 18 Jul 2019  路  3Comments  路  Source: plone/Products.CMFPlone

The change in https://github.com/plone/Products.CMFPlone/commit/6de2544b2432b9b0739719eae81b3e1776b217ed that works around the issue https://github.com/plone/Products.CMFPlone/issues/2666 prevents z3c.jbot overrides of main_template.pt with a file Products.CMFPlone.browser.templates.main_template.pt.

regression

Most helpful comment

For people that experience this issue, copy the main_template.py from the older commit to your browser folder.

In your configure.zcml re-register the main_template with your package layer.

<browser:page
      for="*"
      name="main_template"
      class=".main_template.MainTemplate"
      permission="zope.Public"
      layer="my.package.interfaces.IMyPackageLayer"
      />

Note: The jbot override for the template should be moved to your browser/templates folder and renamed to main_template.pt. You may also need to copy over the ajax_main_template.pt if you haven't already.

All 3 comments

For people that experience this issue, copy the main_template.py from the older commit to your browser folder.

In your configure.zcml re-register the main_template with your package layer.

<browser:page
      for="*"
      name="main_template"
      class=".main_template.MainTemplate"
      permission="zope.Public"
      layer="my.package.interfaces.IMyPackageLayer"
      />

Note: The jbot override for the template should be moved to your browser/templates folder and renamed to main_template.pt. You may also need to copy over the ajax_main_template.pt if you haven't already.

For people that experience this issue, copy the main_template.py from the older commit to your browser folder.

In your configure.zcml re-register the main_template with your package layer.

<browser:page
      for="*"
      name="main_template"
      class=".main_template.MainTemplate"
      permission="zope.Public"
      layer="my.package.interfaces.IMyPackageLayer"
      />

Note: The jbot override for the template should be moved to your browser/templates folder and renamed to main_template.pt. You may also need to copy over the ajax_main_template.pt if you haven't already.

Is it possible ship with an override like this in core Plone? Just trying to figure out how to bring z3.jbot back for these templates.

Does this reintroduce the recursion issue #2666

Was this page helpful?
0 / 5 - 0 ratings