HTML Header

In the HTML header of a layout the desired meta elements are inserted into the web page to be generated. Especially the file name extension and the character set are important here. Usually, also the exported file’s title is translated into the HTML title of the web page and further version fields into the corresponding meta elements:

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title><npsobj name="title" insertvalue="var"/></title>
  <npsobj name="field-name" insertvalue="meta" />
</head>

For each field to be translated into a meta element a dedicated NPSOBJ instruction corresponding to the above example must be included in the layout. Please note in the above example that the name of the field becomes the name of the meta element. To be able to freely determine the name of the meta element (independently from the field names) use an NPSOBJ tag corresponding to the following example:

<npsobj insertvalue="meta" name="meta-name" content="field-name" />

To be able to use your layouts universally, you should read out the fields intended as meta elements in a central layout. You can include this layout in the base layout or another layout with the following instruction:

<npsobj name="template-name" insertvalue="template" />