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>
Designs
Chapters
- Steps to Creating a Design
- Design Asset
- Design Customisations
- Design Tags
- Asset Lineage Design Area
- Body Design Area
- Declared Vars Design Area
- Login Form Design Area
- Password Change Form Design Area
- Menu Normal Design Area
- Metadata Design Area
- Nest Content Design Area
- Show If Design Area
- Exit Design Area
- CSRF Token
- Global Variables
- Using Alternate Designs
- CSS Design File
- SCSS Design File
Appendices
The Latest
Tutorials
- 02 Jul 2019
- 28 May 2019
- 30 Jul 2018
- 12 Jul 2018
-
How To Create an Upcoming Events Listing Using a Calendar Search Page
18 Jun 2018 - 19 Apr 2018
Let Us Know What You Think
Let us know if you spot any errors or if you have any ideas on how we can improve the Matrix Community Website.
Contact Squiz for Demo
Let us show you the true power of Squiz Matrix by giving you a personalised demonstration.