Association of custom fields and Open Graph meta properties

NOTE: If you do not turn Open Graph properties on, even if you configure the fields, the settings will not take effect.

The following is the correlation between the custom fields that you create in a static or dynamic content module and the Open Graph meta properties that are added to the <head> tag of the page:

OpenGraphTitle

  • If you do not create a field named OpenGraphTitle or you create one, but do not fill it out, Sitefinity CMS adds meta property og:title and takes its value from the Title field of the static content type or from the field that you have configured as identifier field of the dynamic content type.
  • If you create a custom field OpenGraphTitle and fill it out when you create the content item, Sitefinity CMS adds meta property og:title and takes its value from what you have entered in OpenGraphTitle field.

OpenGraphDescription

  • If you do not create a custom field named OpenGraphDescription or you create one, but do not fill it out, Sitefinity CMS checks whether the 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 property og:description.
    • If the content type has a custom field named Description and it is filled out, Sitefinity CMS adds meta property og:description and takes its value from what you have entered in Description field.
  • If you create a custom property OpenGraphDescription and fill it out when you create the content item, Sitefinity CMS adds meta property og:description and takes its value from what you have entered in OpenGraphDescription field.

OpenGraphImage

  • If you do not create a custom field named OpenGraphImage or you create one, but you do not fill it out, Sitefinity CMS does not add a meta property.
  • If you create a custom field OpenGraphImage and fill it out when you create the content item, Sitefinity CMS adds meta property og:image and takes its value from what you have entered in OpenGraphImage field.

OpenGraphVideo

The behavior of this custom field is the same as the OpenGraphImage field.

Automatically added properties

In addition to the above properties, by default, Sitefinity CMS adds the following meta properties to the <head> tag of the detailed page:

  • og:type
  • og:url
    This is the canonical URL of the content item
  • og:site_name
    This is the name of the site where the detailed page appears.
    • If you have a Sitefinity Multisite license, the value is the name of the current site. For more information on changing the site name see: Edit sites and set site permissions.
    • If you have a single site, the default value for the site name is "Default". You can change it by going to the Sitefinity CMS backend, and navigating to Administration -> Settings -> Advanced -> Project -> Default site and changing the Name property.

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Web Security for Sitefinity Administrators

The free standalone Web Security lesson teaches administrators how to protect your websites and Sitefinity instance from external threats. Learn to configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?