Required template variables

In a map template, the title, id and language must be expressed as variables rather than as plain text.

When you create a new map in the CCMS, the title you enter in the New Map dialog is automatically placed in the element designated for that information in the template. Normally this element is <title> or one of its specializations such as <mainbooktitle>.

However, some specialized map types do not use the <title> element or one of its specializations for the title. To resolve cases like this, where the element to use isn't clear, the CCMS uses the {{ixia.title}} template variable to designate the element used for the title.

For similar reasons, there are two other required template variables:

  • {{ixia.xml:lang}}: Designates the attribute used for the language code of the language selected for the new map
  • {{ixia.id}}: Designates the attribute used for the id that is automatically generated for the new map

If you create a map in the CCMS and then export it and edit it for use as a template, or if you create a map in an external editor, you must substitute the actual title, language code, and id with these template variables. For example:

<map id="abc1234567890987" xml:lang="en-us">
    <title>My New Map</title>

becomes:

<map id="{{ixia.id}}" xml:lang="{{ixia.xml:lang}}">
    <title>{{ixia.title}}</title>