SDL Digital Experience Accelerator Core Template Building Blocks

DXA provides default Template Building Blocks (TBBs) to use when creating Compound Templates in Template Builder.

You can use the Render Component Content and Default Component Template Finish Actions Template Building Blocks in any Component Template, but the Core Template Building Blocks contain Template Building Blocks with specific functionality.

The following Template Building Blocks are available:

Default Component Template Finish Actions
A collection of Template Building Blocks needed in a Component Template.
Default Page Template Finish Actions
A collection of Template Building Blocks needed in a Page Template.
Generate Sitemap
A Template Building Block for generating sitemap JSON. It is used in the Generate Navigation Component Template.
Publish Configuration
A Template Building Block for generating site configuration as JSON files. You can link multiple configuration Components to a module configuration. When published, the values in these Components are merged into a single configuration file per module. There are also JSON files published containing Schema and Template information (one per module) and a general taxonomy configuration JSON file. It is used in the Publish Settings Component Template.
Publish HTML Design
A Template Building Block for publishing the HTML design. The TBB unpacks the templates and less variables and runs Grunt to build it. It is used in Publish HTML Design Component Template. Parameters available for Publish HTML Design Component Template are:
  • Drive - the drive letter where temporary directory will be created. By default it is the drive where SDL Tridion is installed, the TcmHomeDirectory. You can change it if for example there is not enough space for your HTML design build in the default location.
  • Cleanup - the method how the temporary directory is cleaned. By default the cleanup is done automatically when the TBB is done processing. Change the parameter to false to prevent the automatic cleanup in case you want to debug the contents of the temporary directory.
Publish Mappings
A Template Building Block for generating Schema and Region mapping information in JSON format. It is used in the Publish Settings Component Template.
Publish Resources
A Template Building Block for generating resource JSON files (one per module). A module configuration typically links to multiple resource Components: the TBB merges these into a single JSON file. It is used in the Publish Settings Component Template.
Publish Static Bootstrap
A Template Building Block for generating the _all.json file which is used to load all other JSON configuration/resource/mapping files. It is used in the Publish Settings Component Template.
Render Component Content
A Compound Template used in regular Component Templates for serializing Component content.
Render Component Presentations
A Template Building Block for rendering Component Presentations to the package output. Use the TBB when there is no Page layout for publishing data.
Render Page Content
A Compound Template used in regular Page Templates for serializing Page content.
Resolve Rich Text
A Template Building Block for resolving rich text fields (Format Areas) in the package output. The TBB replaces img tags that point to a YouTube video with a youtube tag so these are resolved correctly by the Web application. The TBB is part of the Default Component Template Finish Actions Compound Template Building Block.
Sdl.Web.Tridion.Templates

The Assembly Template Building Block referenced by other Template Building Blocks. Do not use the TBB directly on a Page or Component Template.