Zope
  Home arrow Zope arrow Page 5 - ZPT Basics (part 4)
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ZOPE

ZPT Basics (part 4)
By: Harish Kamath, (c) Melonfire
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 10
    2002-10-31


    Table of Contents:
  • ZPT Basics (part 4)
  • The Idiot Box
  • The Real McCoy
  • Slotting Into Place
  • Link Zone

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    ZPT Basics (part 4) - Link Zone
    ( Page 5 of 5 )

    And that just about concludes this little tour of METAL. In this final article, I showed you how to use macros in your templates, and demonstrated how they could substantially reduce the time spent on making changes to your Zope application while simultaneously adding a new level of reusability to your code. I also illustrated how METAL macros can be made even more flexible by the addition of "slots", macro placeholders which can be dynamically replaced with different content each time the macro is invoked.

    I hope you enjoyed this tutorial on Zope Page Templates, and that it gave you some insight into how your Zope applications can be made more modular. In case you're looking for more information on Zope in general, or ZPT in particular, drop by the following links:

    The official Zope Web site, at http://www.zope.org/

    Zope documentation, at http://www.zope.org/Documentation

    ZPT documentation, at http://www.zope.org/Wikis/DevSite/Projects/ZPT/FrontPage

    ZPT language specifications, at http://www.zope.org/Wikis/DevSite/Projects/ZPT/LanguageSpecifications

    A simple ZPT tutorial, at http://www.zope.org/Wikis/DevSite/Projects/ZPT/SimpleTutorial

    The ZPT FAQ, at http://www.zope.org/Wikis/DevSite/Projects/ZPT/FAQ

    The METAL HOW-TO, at http://www.zope.org/Members/tone/METAL

    Until next time...be good!

    Note: All examples in this article have been tested on Linux/i586 with Zope 2.5.0. Examples are illustrative only, and are not meant for a production environment. Melonfire provides no warranties or support for the source code described in this article. YMMV!

     
     
    >>> More Zope Articles          >>> More By Harish Kamath, (c) Melonfire
     

       

    ZOPE ARTICLES

    - Creating Zope Products
    - Plone Content Types With Archetypes
    - Flat User Management in Zope
    - Creating Basic Zope Applications
    - Getting started with Zope for Linux and Sola...
    - ZPT Basics (part 4)
    - ZPT Basics (part 3)
    - ZPT Basics (part 2)
    - ZPT Basics (part 1)
    - Exception Handling In DTML
    - DTML Basics (part 4)
    - DTML Basics (part 3)
    - DTML Basics (part 2)
    - DTML Basics (part 1)
    - Using Zope With Apache





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    Stay green...Green IT