Hi again, Tres!<br>Can you point as where we can find this kind of help? Are there some reference manual or similar? (I'm using Zope2) Perhaps on Five manual?<br><br>Thanks a lot!<br><br><div><span class="gmail_quote">
2008/1/15, Tres Seaver <<a href="mailto:tseaver@palladion.com">tseaver@palladion.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
-----BEGIN PGP SIGNED MESSAGE-----<br>Hash: SHA1<br><br>Jurian Botha wrote:<br>> I'm currently developing some customized ZMI pages and I was hoping someone<br>> could give me some insight into what the best way would be to do this.
<br>><br>> I see that Zope 2 uses dtml methods to build the standard ZMI pages but as<br>> far as I know (Zope 3 wise) I should rather be using Zope Page Templates to<br>> build the pages.<br>><br>> I would also like the product to gracefully move on to Zope 3 in future, so
<br>> that should be taken into consideration as well.<br>><br>> Are there perhaps some existsing templates for ZMI that can also be used<br>> with Zope 3?<br><br>You could choose to use a 'zmi_master' template which looked like so::
<br><br> <metal:x metal:define-macro="master"><br> <tal:x tal:replace="structure context/manage_page_header" /><br> <tal:x tal:replace="structure context/manage_tabs" /><br>
<div metal:define-slot="main"><br> Non-boilerplate goes here.<br> </div><br> <tal:x tal:replace="structure context/manage_page_footer" /><br> </metal:x><br><br>If you registered that template as a view in your product's
<br>'configure.zcml', e.g.:<br><br> <browser:page<br> for="*"<br> name="zmi_master"<br> template="zmi_master.pt"<br> /><br><br>you can then use it in your own ZMI templates,
e.g.:<br><br> <html metal:use-macro="context/@@zmi_master/macros/master"><br> <body><br> <div metal:fill-slot="main"><br> <h1> Test ZMI Macro </h1><br> </div><br>
</body><br> </html><br><br>I have attached a tarball of a simple Zope2 product which does this.<br>After installation, you should be able to visit<br><a href="http://localhost:8080/zmi_test">http://localhost:8080/zmi_test
</a> to see the results.<br><br><br>Tres.<br>- --<br>===================================================================<br>Tres Seaver +1 540-429-0999 <a href="mailto:tseaver@palladion.com">tseaver@palladion.com
</a><br>Palladion Software "Excellence by Design" <a href="http://palladion.com">http://palladion.com</a><br>-----BEGIN PGP SIGNATURE-----<br>Version: GnuPG v1.4.6 (GNU/Linux)<br>Comment: Using GnuPG with Mozilla -
<a href="http://enigmail.mozdev.org">http://enigmail.mozdev.org</a><br><br>iD8DBQFHjQMy+gerLs4ltQ4RAvHpAJ4h8VuFM3M4v333UU4jB71CJgvNqgCfcnjf<br>YMSO8d3hiDf5eMyG31nn9Ng=<br>=fh+F<br>-----END PGP SIGNATURE-----<br><br>_______________________________________________
<br>Zope maillist - <a href="mailto:Zope@zope.org">Zope@zope.org</a><br><a href="http://mail.zope.org/mailman/listinfo/zope">http://mail.zope.org/mailman/listinfo/zope</a><br>** No cross posts or HTML encoding! **<br>
(Related lists -<br> <a href="http://mail.zope.org/mailman/listinfo/zope-announce">http://mail.zope.org/mailman/listinfo/zope-announce</a><br> <a href="http://mail.zope.org/mailman/listinfo/zope-dev">http://mail.zope.org/mailman/listinfo/zope-dev
</a> )<br><br><br></blockquote></div><br><br clear="all"><br>-- <br>Mis Cosas<br><a href="http://blogs.sistes.net/Garito">http://blogs.sistes.net/Garito</a><br>Zope Smart Manager<br><a href="http://blogs.sistes.net/Garito/670">
http://blogs.sistes.net/Garito/670</a>