0
我工作的Plone 3.2.1和我做了一個formlib的形式與自定義模板:的Plone + formlib:如何引用form.pt
from Products.Five.formlib import formbase
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
...
class MyForm(formbase.PageForm):
...
template = ViewPageTemplateFile('myform.pt')
我想打一個簡單的改變標準formlib模板。我的問題是:如何在模板中引用parts/zope2/lib/python/zope/formlib/pageform.pt?
<!-- myform.pt -->
<metal:macro metal:use-macro="WHAT GOES HERE??">
<div metal:fill-slot="extra-info">
I just want to put a text before the standard formlib template
</div>
</metal:macro>