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

webmaster@zope.org webmaster@zope.org
Sat, 28 Dec 2002 01:13:12 -0500


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

---------------

    When this template is saved in Zope and viewed by a user, Zope
    turns the dummy content into dynamic content, replacing "Page
    Title" with whatever "here/title" resolves to.  In this case,
    "here/title" resolves to the title of the object to which the
    template is applied.  This substitution is done dynamically, when
    the template is viewed.

      % Anonymous User - Aug. 6, 2002 12:12 am:
       What is the object to which the template is applied? In reading the rest of the chapter it seems like at this
       time the only objects to which the template can be applied is the folder which is the "container" object
       which is accessible to scripts.
       If you can apply templates to other objects how do you apply them to other objects? There seems to be only
       one way to apply an object to a template and this is implicit. You invoke the url to the template or
       <dtml-var> it and the template automatically runs against the container.
       How do you call a template and apply it to another obejct? The Advanced chapter says you can call a template,
       but how do you do this. I can't find the on-line documentation for this.

      % Anonymous User - Sep. 21, 2002 10:43 pm:
       Agree. What do you mean "object to which the template is applied"?
       When and how is a template *applied* to an object?
       Or do you mean it is published in the context of an object?
       Then "here" would be the same as "context" for PythonScripts (see chap 10).
       How abt losing some words abt the general publishing process of zope?
       Also:
       /when the template is viewed/when the template is published/

      % Anonymous User - Dec. 27, 2002 12:26 am:
       This is one of lousy documentation that I have even seen.

      % Anonymous User - Dec. 28, 2002 1:13 am:
       And without doubt it would have been much better had *you* written it.  Well, funnier maybe.