[Product-Developers] ViewPageTemplateFile and TALES provider expression

Martin Aspeli optilude at gmail.com
Tue Sep 16 09:24:57 UTC 2008




Hedley Roos wrote:
> 
> Hi all
> 
> Is it possible to eg. <div tal:replace="structure 
> provider:plone.portalfooter" /> in a page template which is instantiated 
> by render = ViewPageTemplateFile("some_template.pt")?
> 
> I get "Unrecognized expression type "provider". in expression 
> u'provider:plone.portalfooter'"
> 

Wrong ViewPageTemplateFile. Try from Products.Five.browser.pagetemplatefile
import ViewPageTemplateFile.

Martin

-- 
View this message in context: http://n2.nabble.com/ViewPageTemplateFile-and-TALES-provider-expression-tp1092173p1092250.html
Sent from the Product Developers mailing list archive at Nabble.com.





More information about the Product-Developers mailing list