[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Advanced Page Templates

webmaster@zope.org webmaster@zope.org
Thu, 26 Sep 2002 15:36:09 -0400

A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZopeBook/current/AdvZPT.stx#3-109


      Macros defined in a Page Template are stored in the template's
      'macro' attribute.  You can use macros from other page template
      by referring to them through the 'macros' attribute of the Page
      Template in which they are defined.  For example, suppose the
      'copyright' macro is in a Page Template called
      "master_page". Here's how to use 'copyright' macro from another
      Page Template::

        <b metal:use-macro="container/master_page/macros/copyright">
          Macro goes here

        % Anonymous User - June 4, 2002 1:07 am:
         s/template's macro attribute/template's macros attribute/

        % Anonymous User - Sep. 26, 2002 3:31 pm:
         /other page template/other page templates/ or
         /other page template/an other page template/

        % Anonymous User - Sep. 26, 2002 3:36 pm:
         /copyright macro/the copyright macro/