Customizing block components

When new components are required for the page that are not lists, use the Block pattern instead.

About this task

Consider these best practices when customizing block components:
  • Copying a similar block component is the easiest way to create a new one.
  • Content Template Catalog blocks render the header and footer components. This technique is used to render nothing if the block is empty. To render a block conditionally, put tests around the header and footer rendering to hide them if no content is available.
  • Content Template lists contain fragments for including the header and footer. You can use the same fragments in custom block components.