[Zope] Dreamweaver MX rewrites ZPT XML?

Wil Cooley wcooley@nakedape.cc
19 Jun 2002 08:31:42 -0700


--=-tK0waLRHOcQycAXdUlvH
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Wed, 2002-06-19 at 00:41, Chris Withers wrote:
> Wil Cooley wrote:
> >=20
> > I'm completely new to Zope and might have done something wrong with
> > inheritance or something.
>=20
> Sounds like you may have got confused over METAL. Anything outside of a m=
etal:fill-slot
> can't be edited.
>=20
> 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=3D"page">
<head>
  <title tal:content=3D"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=3D"body">
  <p>Bar bar bar bar bar</p>
</div>

</body>
</html>

And then pages using these templates look like:

<html metal:use-macro=3D"container/index_html_tal/macros/page">
  <span metal:fill-slot=3D"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
--=20
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

--=-tK0waLRHOcQycAXdUlvH
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQA9EKPdJpn3uYWUEaoRAgd4AKCbxSfbqDdzLMbXzzVF9KdnKXGeWQCfZNUJ
lHRfTHRUoXoQU/BJFAcWLFw=
=mGvK
-----END PGP SIGNATURE-----

--=-tK0waLRHOcQycAXdUlvH--