Rename Template
Renaming templates is a simple yet essential feature in Topol, allowing users to better organize their email design projects, especially when working with multiple versions, clients, or campaigns.
To allow renaming the currently open template, add the renameTemplate
option to the TOPOL_OPTIONS
object:
ts
renameTemplate: true,
This will place a pencil icon next to the template name.

After clicking the pencil icon, the following callback is fired:
ts
callbacks: {
//...other callbacks
onTemplateRename(title) {
// show custom dialog to rename the template,
// after the dialog is closed, set appropriate title
// inside Topol Options
}
}
Once you saved the new name on your end, you can refresh the template name by calling this function:
ts
TopolPlugin.setTemplateName(newName);