Plone内容类型的自定义模板

时间:2012-02-17 07:49:10

标签: plone

我是Plone的新手。我按照http://plone.org/documentation/kb/creating-a-content-type-for-plone-3-for-developers链接添加了dvd内容类型。当我使用http://plone.org/documentation/kb/creating-a-custom-template-for-a-plone-content-type扩展它时,自定义模板未显示。我将错误视为

Traceback (innermost last):
  Module ZPublisher.Publish, line 126, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 46, in call_object
  Module Products.Five.browser.metaconfigure, line 476, in __call__
  Module Products.Five.browser.pagetemplatefile, line 125, in __call__
  Module Products.Five.browser.pagetemplatefile, line 59, in __call__
  Module zope.pagetemplate.pagetemplate, line 107, in pt_render
   - Warning: Compilation failed
   - Warning: zope.tal.taldefs.TALError: bad TAL attribute: u'', at line 27, column 4
PTRuntimeError: ['Compilation failed', "zope.tal.taldefs.TALError: bad TAL attribute: u'', at line 27, column 4"]

我知道我犯了一些错误。我不知道那是什么。任何人帮助我?!...

1 个答案:

答案 0 :(得分:2)

如果你看错误:

Warning: zope.tal.taldefs.TALError: bad TAL attribute: u'', at line 27, column 4

它表示你有一个属性u''与tal表达无关。也许像是

tal:attributes="u''"

模板中的某处...