[Product-Developers] Re: custom at edit form?
Hedley Roos
hedleyroos at gmail.com
Tue Mar 11 20:11:40 UTC 2008
Assuming that your content type is called Foo create a file
foo_edit.pt with the following content. I believe this is the simplest
way to override the widget rendering.
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"
lang="en-US"
metal:use-macro="here/main_template/macros/master">
<body>
<div metal:fill-slot="main">
<metal:body define-macro="body">
<metal:bodyuse use-macro="here/edit_macros/macros/body">
<metal:widgets fill-slot="widgets">
<metal:fieldMacro use-macro="python:here.widget('title', mode='edit')" />
</metal:widgets>
</metal:bodyuse>
</metal:body>
</div>
</body>
</html>
In fact the html, body and div boilerplate is not needed.
HTH
Hedley
More information about the Product-Developers
mailing list