Metadata Design Area
Last Updated: 17 Dec 2015
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.
Bookmarks to the headings on this page:
The code that is required for the Metadata design area is shown below.
<MySource_AREA id_name="metadata" design_area="metadata" />
Tip: The fields in a Metadata Schema will not appear in the HTML source code of the page is the Show On Frontend field is set to No for either the field, section or the schema itself. For more information, refer to the Metadata Schemas manual.
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 example below sets this to the filed DC.textField.
<MySource_AREA id_name="metadata" design_area="metadata">
<MySource_SET name="metadata_field" value="DC.textField" />
</MySource_AREA>
Example
Below is the HTML code that was added to the static HTML file to show where the metadata design area should go in the design.
<head>
<!-- Metadata lives here -->
</head>
The required code is added to the parse file for the Metadata design area, as shown below.
<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 below.
<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>