Previous Chapter | Next Chapter | Up | Next Section | Contents

When to Use DTML Method vs. DTML Document?


DTML Documents are used to hold content. If you want to store a large document, or lots of text, or a body of information, use a DTML Document.

DTML Methods are used to carry out actions. If you want to render another object (like a DTML Document), execute a DTML script, or generate lots of dynamic content, use a DTML Method.

Also, you may notice that the DTML Document management interface has a Properties view and the DTML Method management interface does not. This is because DTML Documents can have properties like all other Zope objects. DTML Methods share the properties of the folder than contains them.

Previous Chapter | Next Chapter | Up | Next Section | Contents

SUBSECTIONS


Banner.Novgorod.Ru