
Now go to app builder and create a new record page. cmp resource, both it and the template image display when a user selects your template in the Lightning App Builder new page wizard. The design resource controls what kind of page can be built on the template by specifying what regions a page that uses the template must have and what kinds of components can be put into those regions.The Below code shows the designer resource code for the above component.

Configure Template Regions and Components in the Design Resource The Aura.Component type defines the attribute as a collection of components.The Aura.Component attribute is interpreted as a region only if it’s also specified as a region in the design resource.Here is the component code that will allow you to define the record home template for lightning app builder. cmp resource must implement a template interface, and declare an attribute of type Aura.Component for each template region. Build the Template Component StructureĪ custom template is a Lightning component bundle that should include at least a. This interface has no effect except when used within Lightning Experience.

Implement the lightning:recordHomeTemplate interface to enable your component to be used as a custom Lightning page template for object record pages. Implement the lightning:homeTemplate interface to enable your component to be used as a custom Lightning page template for the Lightning Experience Homepage. This interface has no effect except when used within Lightning Experience and the Salesforce app.Components that implement this interface appear in the Custom Templates section of the Lightning App Builder new page wizard for app pages. Implement the lightning:appHomeTemplate interface to enable your component to be used as a custom Lightning page template for pages of type App Page. Each page type has a different interface that the template component must implement.Here are the below interfaces that support components for templates.

Once implemented, your custom template is available in the Lightning App Builder’s new page wizard for your page creators to use.Custom Lightning page template components are supported for record pages, app pages, and Home pages. In this blog, I am going to explain how to create a template for the lightning pages which contains the different custom page regions to place the lightning components. Every standard Lightning page is associated with a default template component, which defines the page’s regions and what components the page includes. Custom Lightning page template components let you create page templates to fit your business needs with the structure and components that you define.
