How can I override a static portlet template? Specifically, I need to override the footer template.
While googling, I found different approaches for various Plone versions, where the transition from viewlets to portlets has been somewhat confusing.
The recent documentation includes a section on portlet development, but it seems overly complex for simply overriding the template of an existing portlet.
I am using the latest Plone 6 with the classic UI.
If you are using plonecli to create your packages, a jbot folder is already pre-registered at some/package/browser/overrides
Just create your new pt and name it using the fullpath of the pt you are overriding. Example if you are overriding my/package/portlets/some_portlet.pt, you name your custom pt as my.package.portlets.some_portlet.pt. Jbot should pick it up.
Thanks, @h2o. I remember this approach worked well with Plone 4, but considering that this stackoverflow post is (exactly!) 13 years old, is this still the recommended way to do it in Plone 6?
Are you sure you need to do that?
The footer 'stuff' is moved with diazo in the Plone 6 theme, it might be easier to do it there ?
Also: Cant you just hide it and use a static text portlet or similar?