Default Template Building Blocks
This section describes the Template Building Blocks that are provided with SDL Tridion Sites.
- Loading Template Building Blocks
When you create a Publication, SDL Tridion Sites automatically creates the core set of default Template Building Blocks in the Building Blocks\Default Templates\ folder. To use other default Template Building Blocks, you need to load them into Content Manager using Template Builder. - Extract Components from Page
The Extract Components from Page Template Building Block examines thePageitem in the package, places all the Component Presentations (Components and associated Component Templates) in the Page (but not in its Regions) in a separate array calledComponentsand then adds theComponentsarray to the package. - Extract Components from Regions
The Extract Components from Regions Template Building Block examines thePageitem in the package, places all the Component Presentations (Components and associated Component Templates) in its Regions (but not in the Page itself) in one separate array calledComponentsand then adds theComponentsarray to the package. - Component Query
The Component Query Template Building Block selects items from a Content Manager Folder. You can specify which items to select, how to filter them, sort the results and limit them to a maximum. - Convert HTML to XML
The Convert HTML to XML Template Building Block checks the package it receives for an item calledOutputand attempts to convert the HTML in that item into XHTML. The Dreamweaver Template Building Blocks automatically places an item calledOutputin the output package. You can specify the name of a different item in the package to transform using the Item name parameter. - Convert XML to HTML
Convert XML to HTML tries to convert the XML of the package item calledOutputinto HTML. Specifically, it removes any XHTML namespace declaration and converts all empty XML elements (for example,<br/>) to empty HTML elements (<br>). - Extract binaries from HTML
The Extract binaries from HTML checks theOutputitem in the input package (containing HTML or XHTML) for references to Multimedia Components in the form of file names with relative paths. It retrieves the binary content of those Multimedia Components and adds them as binary streams to the package, and it replaces the filename references with TCM URI references in the output. - Image Resizer
The Image Resizer Template Building Block checks for screenshots in the input package, or for a specific item in the input package if specified in the Item name parameter, and resizes these screenshots according to the parameter settings. - Default finish actions
The Default finish action Template Building Block is a Compound Template that executes the Publish binaries in package, Link Resolver, Cleanup Template and Target Group Personalization default Template Building Blocks (typically executed as the last two steps of a Compound Template). - Activate Tracking
The Activate Tracking Template Building Block enables tracking for Component Presentations that use Keywords from a Tracked Category. It examines the Component Presentations in theOutputitem and adds tracking calls when a Component uses a keyword that belongs to a category that is being tracked (the Component Template has a Linked Schema which uses the Category).