Hi!
I'm working on adding viewlets as a subtemplate in bobtemplates.plone. As I was going through documentation, I found few problems in understanding ViewletManager from this page
In particular with this line
In your browser/viewlets/manager.py or similar file add:
<browser:viewletManager
name="plonetheme.yourtheme.headerbottommanager"
provides="plonetheme.yourtheme.browser.viewlets.manager.IHeaderBottomViewletManager"
class="plone.app.viewletmanager.manager.OrderedViewletManager"
layer="plonetheme.yourtheme.browser.interfaces.IThemeSpecific"
permission="zope2.View"
template="headerbottomviewletmanager.pt"
/>
The first thing with the above line is that this is configuration and the line suggest to add in python file.
I didn't strictly follow that page for making viewlets as there was an easy alternative on training docs, but there are no concepts introduced on ViewletManager in training docs.
So, I just added two viewlets and with /@@manage-viewlets
i was able to order it with my needs. But since I wanted to do so using viewlets.xml
in profile/default
folder, which I added it later (not programmatically). But still, I don't see that order which is defined in viewlets.xml
You can see the work and may suggest the change