[Zope] Where is the default ZPT?

Kevin Carlson khcarlso at bellsouth.net
Wed Feb 11 08:13:25 EST 2004


I believe you can find this in 
/zope/lib/python/Products/PageTemplates/www/default.html where /zope is 
your zope install directory.  You should be able to edit this file and 
refresh the product (or restart Zope) to have the changes take effect.

Kevin

Cynthia Kiser wrote:

>I would like to edit the text of the default ZPT that comes up when
>you create a new Page Template from the ZMI. Basically all the pages
>on a site I am working on have the same template. Following the
>instructions in the Zope Bible, I created a Page Template containing a
>metal:define-slot macro
>
>  <span metal:define-slot="content">
>    Content will go here.
>  </span>
>
>And then created a content file as a new Page Template with a matching
>metal:fill-slot tag enclosing the page's content. Works great. 
>
>Now what I would like is to be able to create new pages but just
>adding new Page Templates that prefill the
>"metal:fill-slot"-containing skeleton. I tried editing
>standard_templage.pt so that it contains the following:
>
>  <html metal:use-macro="root/SubPageTemplate/macros/standard_look">
>    <head>
>      <title tal:content="template/title">The title</title>
>    </head>
>    <body>
>      <span metal:fill-slot="content">
>
>  Paste content here.
>
>      </span>				
>    </body>
>  </html>
>
>
>But this file does not seem to be what I guessed it was because when I
>create a new Page Template and click "Add and Edit", the textarea
>still contains the boilerplate ZPT that shipped with my Zope
>installation (2.6.4rc1): 
>
>  <html>
>    <head>
>      <title tal:content="template/title">The title</title>
>    </head>
>    <body>
>
>      <h2><span tal:replace="here/title_or_id">content title or
>  id</span>
>	  <span tal:condition="template/title"
>		tal:replace="template/title">optional template
>  id</span></h2>
>
>      This is Page Template <em tal:content="template/id">template
>  id</em>.
>    </body>
>  </html>
>
>
>Where do I edit the default ZPT content? (And what did I mess up by
>editing standard_template.pt?)
>
>
>  
>



More information about the Zope mailing list