[Grok-dev] Using five.grok to add new viewlets
vincent.fretin at gmail.com
Wed Dec 31 04:22:29 EST 2008
I started to blog about my recent work on archgenxml:
I wrote a post about my experience of using five.grok to create
viewlets in a Plone product.
Here it is:
You'll see in a comment that I didn't manage to use grok.PageTemplateFile
from Products.Five.browser.pagetemplatefile import ZopeTwoPageTemplateFile
template = ZopeTwoPageTemplateFile('templates/adviewlet.pt')
And I tried various things, I didn't manage to use grok.PageTemplateFile.
My last try was:
template = grok.PageTemplateFile('templates/adviewlet.pt')
But this don't work.
How it is supposed to work? How do you render the template if you use
I asked to be added to planet plone, but nobody answered:
More information about the Grok-dev