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 multisite, 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.

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.

Web Security for Sitefinity Administrators

This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. 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?