In bobtemplates for the barceloneta theme we also create a slider-image.pt.example in theme/views folder … if we want to activate it we need to rename it to slider-image.pt
I am following https://training.plone.org/5/theming/theme-package-4.html#creating-a-new-plone-template
What is actually missing from the tutorial above is the zcml configuration. There are two zcml files in the barceloneta theme project created:
- configure.zcml
- browser/configure.zcml
I guess it is the best to add the configuration in browser/configure.zcml, right? Not sure about the best practices because of the template attribute pointing one level up "../" (see below).
<browser:page
name="slider-images"
for="Products.CMFCore.interfaces.IFolderish"
template="../theme/views/slider-images.pt"
permission="zope2.View"
menu="plone_displayviews"
title="Slider images"
/>