Back to top anchor
Documentation

Preconfigured HTML metadata

User role
Content Administrator Drupal Sitebuilder
Task
Sitebuilding
Topic
Metadata
Product
Sector Starter kit

Even though HTML metadata is not displayed on your site, it is used by search engines, social media platforms, and other web services. For the Sector Starter Kit we have preconfigured a few basic settings to get you started. 

The <meta> tag - a part of your node's source or code - provides metadata to specify the way your content should be displayed. It provides additional information using, amongst others, page descriptions, keywords, and teaser images. 

Required Drupal contribution modules

The Drupal Metatag module is part of the Sector Starter Kit, and includes more than 15 submodules for specific applications. Since Sector D8 beta 2, the Metatag: Open Graph submodule is activated by default. 

Features and functionality

Your metadata configuration should be specific to your site based on your business objectives and your user needs. But there are a few things that most websites have in common, and the Starter Kit provides a set of tools and settings to support further configuration: 

  • A base set of metadata configuration using tokens to reuse your page titles and body summaries for HTML metadata, and 
  • An image style to allow for specific sizes for your social media images.  

Related entities and configuration (Sector D8)

Metadata configuration 

<your-domain>/admin/config/media/image-styles/manage/social_media

  • Global settings - we have used tokens for URL and title metatags.
  • 404 and 403 pages should not be indexed - no tags are set and the robots tag is set to noindex.
  • All content - the description for all content is taken from the node summary token.
    If your content type does not have a body field, you can add a content type specific metatag using a different text field or a default text.
  • The Sector content type Promotion should not be indexed - no tags are set and the robots tag is set to noindex.
  • Most Sector sites are expected to not have public user profiles and taxonomy term pages - no tags are set and the robots tag is set to noindex.

Social media image style

<your-domain>/admin/config/media/image-styles/manage/social_media

The social media image style is a helper style so that you can use an existing image in an extra large image style for Twitter cards and Facebook posts. More about this coming soon ... 

Last updated

Sector 9 is out!

With Drupal 9 released, we have published our Sector 9 roadmap as well as completed the first release for Sector 9.

Need Help?

Sector is brought to you by Sparks Interactive - supporting Sector from Wellington and Auckland

Open Source award winner!

Sparks Interactive are delighted to accept the Open Source Use in Business award for Sector and the Sector.nz open source platform.

Subscribe for Sector updates