Cyclone3 Skin

Add a new layer to servicetype

From Cyclone3 Wiki

For explanation on what a layer file is and why to use it, see Layer

If you want to add a layer, open your editor, and start with

<!CMLTYPE type:name="Cyclone-Markup-Language" type:version="1.0" type:cp="UTF-8"!>

Now, specify the modules you want this layer to include:

<MODULE>
...
</MODULE>

When you're ready, save the file into the _type subfolder of your service's root directory, under a unique name in the following syntax, in ASCII format (without national characters):

{layer name}.cml_gen

In opposition to type files, you don't need to add a new layer to the type.conf configuration file. You can start using it immediately after saving using two different types of approach:

First - a linear approach, where the definition needs to take place before the first <MODULE> definition, as it is loaded in the initialization of the loaded type.

<!CMLTYPE type:name="Cyclone-Markup-Language" type:version="1.0" type:cp="UTF-8"!>

<CONF_VAR id="layers" value="{layer name}" />

<MODULE>
...

Second, place the layer where you want, and it will be loaded linearly as specified in the type file, i.e.

<!CMLTYPE type:name="Cyclone-Markup-Language" type:version="1.0" type:cp="UTF-8"!>

..

<MODULE>
...
</MODULE>
<ADDLAYER id="{layer name}" />
<MODULE>
...
</MODULE>
<ADDLAYER id="{other layer name}" />