I am trying to fix the monthly navigation of the calendar portlet assigned to the custom portlet manager. This manager is called from a specific page template with:
<div id="calendar"
tal:content="structure provider:my.custom.portletmanager" />
Unfortunately, the manager does not display the hash shell for me, so I try to manually add the cssattr-portlethash css class to the above tag <div>to do the monthly navigation (refreshPortlet () needs this). I tried this:
from plone.portlets.utils import hashPortletInfo
class SectionHomeView(BrowserView):
"""SectionHome browser view
"""
implements(ISectionHomeView)
def __init__(self, context, request):
self.context = context
self.request = request
@property
def getHash(self):
info = dict(manager = 'my.custom.portletmanager',
category = 'context',
key = '/my-section',
name = 'mycalendar',
)
return hashPortletInfo(info)
Using this code, I get a hash, but calendar navigation still doesn't work. How can I access portlet information such as manager, category, key and name to calculate correctly?
, , column.pt plone.app.portlets.browser.templates ColumnPortletManagerRenderer (portlets/manager.py), , ( ..: ).