Hi again, Tres!<br>Can you point as where we can find this kind of help? Are there some reference manual or similar? (I&#39;m using Zope2) Perhaps on Five manual?<br><br>Thanks a lot!<br><br><div><span class="gmail_quote">
2008/1/15, Tres Seaver &lt;<a href="mailto:tseaver@palladion.com">tseaver@palladion.com</a>&gt;:</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>&gt; I&#39;m currently developing some customized ZMI pages and I was hoping someone<br>&gt; could give me some insight into what the best way would be to do this.
<br>&gt;<br>&gt; I see that Zope 2 uses dtml methods to build the standard ZMI pages but as<br>&gt; far as I know (Zope 3 wise) I should rather be using Zope Page Templates to<br>&gt; build the pages.<br>&gt;<br>&gt; I would also like the product to gracefully move on to Zope 3 in future, so
<br>&gt; that should be taken into consideration as well.<br>&gt;<br>&gt; Are there perhaps some existsing templates for ZMI that can also be used<br>&gt; with Zope 3?<br><br>You could choose to use a &#39;zmi_master&#39; template which looked like so::
<br><br> &lt;metal:x metal:define-macro=&quot;master&quot;&gt;<br> &lt;tal:x tal:replace=&quot;structure context/manage_page_header&quot; /&gt;<br> &lt;tal:x tal:replace=&quot;structure context/manage_tabs&quot; /&gt;<br>
 &lt;div metal:define-slot=&quot;main&quot;&gt;<br>&nbsp;&nbsp; Non-boilerplate goes here.<br> &lt;/div&gt;<br> &lt;tal:x tal:replace=&quot;structure context/manage_page_footer&quot; /&gt;<br> &lt;/metal:x&gt;<br><br>If you registered that template as a view in your product&#39;s
<br>&#39;configure.zcml&#39;, e.g.:<br><br>&nbsp;&nbsp;&lt;browser:page<br>&nbsp;&nbsp;&nbsp;&nbsp; for=&quot;*&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp; name=&quot;zmi_master&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp; template=&quot;zmi_master.pt&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp; /&gt;<br><br>you can then use it in your own ZMI templates, 
e.g.:<br><br>&nbsp;&nbsp;&lt;html metal:use-macro=&quot;context/@@zmi_master/macros/master&quot;&gt;<br>&nbsp;&nbsp;&lt;body&gt;<br>&nbsp;&nbsp;&lt;div metal:fill-slot=&quot;main&quot;&gt;<br>&nbsp;&nbsp; &lt;h1&gt; Test ZMI Macro &lt;/h1&gt;<br>&nbsp;&nbsp;&lt;/div&gt;<br>
&nbsp;&nbsp;&lt;/body&gt;<br>&nbsp;&nbsp;&lt;/html&gt;<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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+1 540-429-0999&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:tseaver@palladion.com">tseaver@palladion.com
</a><br>Palladion Software&nbsp;&nbsp; &quot;Excellence by Design&quot;&nbsp;&nbsp;&nbsp;&nbsp;<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&nbsp;&nbsp;-&nbsp;&nbsp;<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>**&nbsp;&nbsp; No cross posts or HTML encoding!&nbsp;&nbsp;**<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>