Documentation Center

Execution sequence

When you apply a Page Template to a Page, or a Component Template to a Component, the template processes the content in a certain sequence.

  1. The Content Manager presents the Page or Component to transform to the Template in the form of a package.
  2. The Template presents this package to the first Template Building Block in the sequence.
  3. A piece of code called a mediator invokes the Template Building Block. The mediator uses the Template Building Block, combined with the parameters that were set for this invocation, to transform the package.

    Each type of Template Building Block has its own mediator.

  4. The Template then offers the transformed package to the next Template Building Block as input, which is similarly invoked by a mediator.
  5. This process repeats until the entire sequence of Template Building Blocks has been invoked.

    The last Template Building Block must produce a package that contains an item called Output, which must contain the publishable content (either a Web page or a Component Presentation).