On Wed, 2002-06-19 at 00:41, Chris Withers wrote:
Wil Cooley wrote:
I'm completely new to Zope and might have done something wrong with inheritance or something.
Sounds like you may have got confused over METAL. Anything outside of a metal:fill-slot can't be edited.
Well, it can, but when you save it, it'll be overwritten by the contents of the macro..
Well, that's entirely possible. What do you mean by "Anything outside of a metal:fill-slot can't be edited." ? Do you mean can't be edited with WebDAV, or can't be edited and expected to have any effect or something else? I could be wrong, but my expectation with WebDAV is that I should be able to edit anything I can get to with the web management interface (aside from thing like properties and other non-file-like features). Here's what my template looks like (this is the current cumulative result of several hours of experimenting and reading, so things might be a little off): <html metal:define-macro="page"> <head> <title tal:content="python:path('template/title') or path('here/title') or path('container/title')"> The document title or folder title or the example title </title> </head> <body> <div metal:define-slot="body"> <p>Bar bar bar bar bar</p> </div> </body> </html> And then pages using these templates look like: <html metal:use-macro="container/index_html_tal/macros/page"> <span metal:fill-slot="body"> <p>Foo Foo Foo</p> </span> </html> When I open the file with the "Foo" body in Kate, I actually get the main template, without any of the stuff from "Foo". Wil -- W. Reilly Cooley wcooley@nakedape.cc Naked Ape Consulting http://nakedape.cc * Linux and Network Consulting * irc.linux.com #orlug,#lnxs The most costly of all follies is to believe passionately in the palpably not true. It is the chief occupation of mankind. -- H.L. Mencken