Explore how to create and manage layouts in Novu
Novu allows the creation of layouts - a specific HTML design or structure to wrap content of email notifications. Layouts can be manipulated and assigned to new or existing workflows within the Novu platform, allowing users to create, manage, and assign these layouts to workflows, so they can be reused to structure the appearance of notifications sent through the platform.
By default, Novu will create a default layout and assign it as the organization’s default layout. At any time, you can choose any of your layouts as the default for your organization. All new email templates will be assigned the default layout unless assigned a different one through the email editor.
You can find and manage your organization’s layouts in Brand -> Layouts
You can create new or edit existing layouts through the layout editor.
{{{body}}}
, to indicate where the email editor content will be injected inside the layout. To assign, choose a layout through the email editor. You can preview your layout combined with your email content through the Preview
tab.
To override your assigned layout during a trigger event, use the layoutIdentifier
property.
The layout specified will be used for all emails in the context of that trigger event.
Novu SDK supports all layout functionalities:
A new layout can be created with name, description, content, variables and an isDefault
flag. Here, content param is html content with custom variables.
When updating a layout, all properties are optional and the SDK will only update the ones passed.
When executing this, the existing default layout in the environment will be automatically set as non default and the chosen layout will be set as default. This action is non reversible.
Layouts can also be deleted. The condition to be able to delete a layout is that it is not a default layout and is not assigned in any existing workflow.
Find a layout by layoutId
List paginated layouts
Explore how to create and manage layouts in Novu
Novu allows the creation of layouts - a specific HTML design or structure to wrap content of email notifications. Layouts can be manipulated and assigned to new or existing workflows within the Novu platform, allowing users to create, manage, and assign these layouts to workflows, so they can be reused to structure the appearance of notifications sent through the platform.
By default, Novu will create a default layout and assign it as the organization’s default layout. At any time, you can choose any of your layouts as the default for your organization. All new email templates will be assigned the default layout unless assigned a different one through the email editor.
You can find and manage your organization’s layouts in Brand -> Layouts
You can create new or edit existing layouts through the layout editor.
{{{body}}}
, to indicate where the email editor content will be injected inside the layout. To assign, choose a layout through the email editor. You can preview your layout combined with your email content through the Preview
tab.
To override your assigned layout during a trigger event, use the layoutIdentifier
property.
The layout specified will be used for all emails in the context of that trigger event.
Novu SDK supports all layout functionalities:
A new layout can be created with name, description, content, variables and an isDefault
flag. Here, content param is html content with custom variables.
When updating a layout, all properties are optional and the SDK will only update the ones passed.
When executing this, the existing default layout in the environment will be automatically set as non default and the chosen layout will be set as default. This action is non reversible.
Layouts can also be deleted. The condition to be able to delete a layout is that it is not a default layout and is not assigned in any existing workflow.
Find a layout by layoutId
List paginated layouts