Association of custom fields, meta title, and meta description
When a Sitefinity CMS page renders on the website frontend, it populates the page meta fields to ensure SEO compliance. By default, Sitefinity CMS uses the values of the page HtmlTitle and Description fields to populate the <title>
and <meta name="description">
tags inside the page <head>
section. When your page contains widgets that display Sitefinity content, these widgets can override the default behavior and instruct Sitefinity CMS to use their SEO Title and SEO Description field values instead. For more information about controlling which values are used for populating the page meta information, see Meta title and meta description of widgets .
PREREQUISITES: To use meta title and meta description in MVC widgets, you must first turn the functionality on.
The following is the correlation between the custom fields that you create in a static or dynamic content module and the meta title and meta description that are added to the <head>
tag of the page:
MetaTitle
- If you do not create a field named
MetaTitle
, Sitefinity CMS adds a <title>
tag and takes its value from the Title field of a static module or from the identifier field of the dynamic content type.
- If you create a custom field MetaTitle, but do not fill it out when you create the content item, Sitefinity CMS adds a
<title>
tag and takes its value from the Title field of a static module or from the identifier field of the dynamic content type.
- If you create a custom field MetaTitle and fill it out when you create the content item, Sitefinity CMS adds a
<title>
tag and takes its value from what you have entered in MetaTitle
field.
MetaDescription
- If you do not create a custom field named MetaDescription, or you create one, but do not fill it out, Sitefinity CMS checks whether the static or dynamic content type has a custom field named Description.
- If the content type has a custom field named
Description
, but it is empty, Sitefinity CMS does not add a meta description.
- If the content type has a custom field named
Description
and it is filled out, Sitefinity CMS adds meta name description
and takes its value from what you have entered in Description
field.
- If you create a custom property
MetaDescription
and fill it out when you create the content item, Sitefinity CMS adds meta name description
and takes its value from what you have entered in MetaDescription
field.