To be installed and operated in Sitebuilder, created templates must be compiled into a template pack. This is an .msi file for Windows OS and .sh file for Unix OS. The file can contain one or several templates.
Prior to launching the compilation process, make sure that:
info.xml file.info.xml file coincides with the name of the template directory.To compile an installable template pack:
compile.sbtp file containing the following lines:<?xml version="1.0" encoding="utf-8"?>
<templatePack name="Sample pack" type="Windows">
<directory path="swsoft-example-01" />
<directory path="swsoft-example-02" />
<directory path="swsoft-example-03" />
</templatePack>
name is the name of a template pack (optional).
type is a type of operational system, for which the template is compiled. Values: Windows, Unix.
directory is a list of directories, where templates are located.
path attribute defines path to the directory where template is located. The path can be absolute or relative (to the directory where compile.sbtp file is located). Example: D:\Templates\my-template-01.
compile.sbtp file.A window displaying the results of the compilation process opens.
The compiled template pack will look as follows: [name of the .sbtp file].msi or [name of the .sbtp file].sh depending on a template pack type.
Note: You can change name of .sbtp file. For instance, instead of compile.sbtp you can use sample.sbtp.