Metadata design area

This design area allows you to add the metadata tags to the HTML source code of the page. The tags that are added will depend on the Metadata Schemas that have been applied to the asset.

The code that is required for the metadata design area is shown:

<MySource_AREA id_name="metadata" design_area="metadata" />
The fields in a metadata schema will not appear in the HTML source code of the page if the Show on frontend field is set to No for either the field, section, or the schema itself. Read the Configuring metadata schemas documentation for more information.

Set Variables

The set variable available for the metadata design area is as follows:

metadata_field

This variable allows you to output a specific metadata field instead of the metadata schema. The following example sets this to the field DC.textField.

<MySource_AREA id_name="metadata" design_area="metadata">
<MySource_SET name="metadata_field" value="DC.textField" />
</MySource_AREA>

Example

The following sample is the HTML code added to the static HTML file to show where the design should go in the metadata design area.

<head>
  <!-- Metadata lives here -->
</head>

The required code is added to the parse file for the metadata design area, as shown:

<head>
  <!-- Metadata lives here -->
<MySource_AREA id_name="metadata" design_area="metadata" />
</head>

The metadata tags are now added to the HTML source code of the page, as shown:

<head>
  <!-- Metadata lives here -->
<!-- Metadata Schema //-->
  <!-- User Defined //-->
  <meta name="Description" content="This is the Home page" />
  <meta name="Subject" content="" />
  <meta name="Keywords" content="" />
  <!-- System Defined //-->
  <meta name="Author" content="Root User" />
  <meta name="DateCreated" content="04/08/2008 08:54:48" />
</head>