Skip to main content

File name convention

The basic file naming structure for templates:​

.
.
|-- templates
.
.

All templates files names is a representation of the {object:Menu ...} ... {/object:Menu}, the id of the object and the name of the object. The file name should be in the following format: name.id.html.

Say your object is defined as:

{object:Menu 
id="my_menu_id"
name="My Menu"
...}
...
...
{/object:Menu}

the file name should be: My Menu.my_menu_id.html.

This is important to understand when using SFTP to edit template files, as the file name is used to identify the object and its properties. If the file name does not match the object id and name, the system will not be able to correctly identify and load the template. While it is possible to rename the file, it is better to remove the old file and create a new one with the new name. Renaming will create a new file and the old file will still exist in the system, potentially causing confusion.

Using the web editor, the file name will be automatically generated when creating new template files. The file name will be generated based on the name and id of the object.