Customizing AT View Templates

This tutorial describes the steps to produce a fully-customized view of an Archetypes object. This is applicable to tweaking little details of the default AT behavior as well as gutting and re-building the view from scratch.

  1. Introduction Goals, Pre-Requisites, and Tools
  2. What Makes It Tick? This page describes how Archetypes uses different templates to generate HTML, and how AT-based template customization can be applied.
  3. Customizing Widgets This page shows you how to customize widgets, and gives some examples of what kinds of neat tricks can be done with widget customization.
  4. Total Control: The View Template This page describes how you can control every portion of the HTML output in the content area by creating a custom view template.
  5. Conclusion Some final notes about customizing Archetypes view templates
  6. Reference A reference for customizing Archetypes view templates

All content on one page (useful for printing, presentation mode etc.)

 

Search macros

Posted by Karl Johan Kleist at Jun 08, 2006 02:16 PM
Using widgets through "search" macros is no longer maintained. There are also issues with Archetypes.ArchetypeTool.getSearchWidgets().

"Customizig labels" not compatible with Plone 2.5.2

Posted by Marcel at Mar 19, 2007 08:26 PM
Great tutorial and very useful.
The part about overriding the label template doesn't work (anymore) in Plone 2.5.2.

Also defining a css macro might not be best pratice anymore with the advent of the resource registry.

Maybe this tutotrial should be integrated with the AT developers guide?
(http://plone.org/[…]/archetypes-developer-manual)