Say I have a page template a In that page I have a section like this: <div id="body"> stuff in the body </div> is there a way from page template b to render only the "body" div from a? <div id="insertedbody" tal:replace="here/templatefolder/a> stuff </div> -- David Bear phone: 480-965-8257 fax: 480-965-9189 College of Public Programs/ASU Wilson Hall 232 Tempe, AZ 85287-0803 "Beware the IP portfolio, everyone will be suspect of trespassing"
David Bear wrote:
Say I have a page template a
In that page I have a section like this:
<div id="body"> stuff in the body </div>
is there a way from page template b to render only the "body" div from a?
<div id="insertedbody" tal:replace="here/templatefolder/a> stuff </div>
this you do with macros. read the section on metal macros in the zope book on zope.org Robert
I think you'd define that section as a METAL macro and then use-macro in the other pt.... On Friday, March 19, 2004, at 01:50 PM, David Bear wrote:
Say I have a page template a
In that page I have a section like this:
<div id="body"> stuff in the body </div>
is there a way from page template b to render only the "body" div from a?
<div id="insertedbody" tal:replace="here/templatefolder/a> stuff </div>
-- David Bear phone: 480-965-8257 fax: 480-965-9189 College of Public Programs/ASU Wilson Hall 232 Tempe, AZ 85287-0803 "Beware the IP portfolio, everyone will be suspect of trespassing"
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
David Bear -
Marc Lindahl -
robert rottermann