Drupal Planet

The central part of the event is the 45-minute sessions covering 23 topics divided into two parallel streams. They are held in ‘Joy of Being’ and ‘Inspiration’ halls. 

Drupal Planet

Prague, perhaps the most beautiful city in Europe, was host to the annual Drupal conference DrupalCon this year! After two online editions because of the pandemic, it was finally time for an in person conference! What better place than the home of pilsener :D ? After a very long queue in Schiphol Airport, we were on our way... Day 1 The first day started with the traditional contribution session and then the conference kicked off with the Opening Ceremony and a keynote speech from the core initiative leads. https://www.youtube.com/watch?v=13hyoDAFP9EAfter an…

Drupal Planet

This year my session on the Form API workflow was selected for DrupalCon Prague. I was thrilled when I received the message that it had been selected, as to be honest, I have proposed the session at least four times (for Drupal Dev Days and the previous DrupalCons). Ever since I drew the Drupal 7 Form API workflow illustration years ago, I wanted to create a new one for Drupal 8, but I didn't find the time, so I decided to submit it to a Drupal event. Having a deadline is always a great push to do something.

The Drupal Form API illustration

Drupal Planet

Image removed. As developers living in a Western Country, a lot of us are used to build websites for left-to-right languages only and, depending on your clients and their markets, chances are high you might never have to worry about any other directional concept – until you suddenly do.

Drupal Planet

Configuring the Drupal 9 Metatag Module - A Brief Guide Shefali Shetty 04 Oct, 2022 Subscribe to our Newsletter Now Subscribe Leave this field blank

Meta tags are often underrated. Sure, they are not visible on your page up front but they are those hidden ninjas that can elevate your SEO game. These modest snippets of text that describe your page can turn out to be invaluable. Information in the meta tags can appear in the search engine results, browser tab, and social media posts. The Drupal 9 Metatag module helps site builders dynamically create and manage these metadata (or meta) tags for each of their web pages through an interactive admin interface (and no code!).

With the Drupal Metatag module, you can provide structured metadata and even customize meta tag elements. Meta elements are tags used in HTML or XHTML documents to provide structured metadata about a web page. They are part of a web page's head section. Multiple meta elements with different attributes can be used on the same page. Let's dive in and learn how to improve your website’s SEO ranking by setting up the Metatag module the right way.

Image removed.

Configuring the Drupal 9 Metatag Module

Meta tags can specify a web page's title, description, keywords, and any other metadata not provided through the other head elements and attributes. You need to add meta tags in the head section of your Drupal 9 pages for the title, description, keywords, Twitter card, and Facebook open-graph - to make your website SEO friendly. Download and install the module here.

With the Drupal Metatag module, we can configure:

  • Meta tags for the home page(front page)
  • Meta tags for a Content-type
  • Meta tags for view pages

Let’s discuss more on configuring the Metatag module for each one of them.

Configuring Drupal 9 Meta tags for the Home page

After installing the module, you can edit global configurations at /admin/config/search/metatags. Set the global configuration for the front page. Click on Edit to get into the details.

Image removed.

Drupal 9 Metatag - Configuration for Frontpage

Enter the Page Title, Description, Abstract, and Keywords.

Image removed.

Drupal 9 Metatag - Configuration for Frontpage

Page Title

This snippet is useful not only to search engines but also to your users. It appears in the title bar of your web page and should not exceed 55 characters. It also acts as a title for when your web page is bookmarked.

Description

Enter a brief description of your website. Make sure that the description does not exceed 150 characters because search engines won't display more than that on a results page. If you don't have either field filled out, Google will decide what to display without any input from you. It can be very helpful to write up a snappy description for your content here.

Abstract

Enter a brief Abstract (Optional). Again, keep it to fewer than 150 characters but instead of something snappy, try to be as plainly descriptive as possible.

Keywords

Enter a comma-separated list of keywords relevant to your website.

Advanced Settings and Custom Meta tags

There are some important elements here that were previously handled by code.

Image removed.

Drupal 9 Metatag - Advanced Settings

Robots

Normally, if you want to block or allow search engines from indexing a page or disallow search engines to display cached copies or descriptions of your page, you would edit the site-wide Robots.txt file. Here, you can control all of it and more with the Robots meta tag by checking/unchecking the various indexing options it provides.

News Keywords

This Meta tag is exclusively used by Google News, which uses comma-separated keywords as inputs.

Rights

Any details about copyright or trademarks that you might have, should go here.

Image

This one is also relatively new and can be handy for telling social networks which image they should use with a post.

Canonical URL

Canonical URLs are very useful for dealing with duplicate content issues. This is something that is often a problem on e-commerce sites where product listings are duplicated on multiple pages. The Metatag module does a good job of handling this by default.

Shortlink URL

This element acts as an alternative to link shorteners. In Drupal they usually come out looking something like this:

Original Source

This tag is also something that Google came up with, this time to help identify the original source of content. This one may be particularly useful for news sites, but can be safely ignored by most.
Once you have updated all the fields, save your settings.

Configuring Drupal 9 Meta tags for a Content type

To configure meta tags for a content type, you will need to edit global configurations at /admin/config/search/metatags and set the global configuration for Content. Click on Edit to get into the details. If you want to add different metatags for different content types, click on the “Add default Meta tags” link on the top left corner of the page. Select the content type you wish to add metatag to and click on Save and configure.

Image removed.

Drupal 9 Metatag - Configuration for Content types

Image removed.

 

Drupal 9 Metatag - Configuration for Content type: Article

The content type will be listed in the Meta tags screen. The above screenshot shows the content type ‘Article’. Click on Edit to add metatags.

Enter Page Title, Description, Abstract, and other necessary settings. Follow the same procedure as mentioned above in configuring metatags for the front page.

Configuring Drupal 9 Meta tags for View pages

Enable “Metatag: Views” module which is a sub-module of the metatag module.

Image removed.

Drupal 9 Metatag - Configuration for Views

Edit global configurations at /admin/config/search/metatags. Click on override to get into the details.
To add the meta tags in view go to the views edit screen and click on the meta tags link.

Image removed.

 

Image removed.

 

The above setting is the default setting for the view page.

Final Thoughts

The Drupal 9 Metatag module is a powerful amalgamation of various individual modules that aims at lowering manual coding to configure meta tags. Modules like the Page Title, Open graph Meta tags, Easy Meta, Refresh, and more are now merged into the Metatag module. It also provides multilingual support, can override meta tags based on entity objects, supports editorial workflows, and much more. As a leading Drupal development company, we implement best practices both in strategy and coding that can help you achieve project success. Starting a new Drupal project? Talk to our Drupal experts today to find out how we can help.

Author: Shefali Shetty

​​Meet Shefali Shetty, Director of Marketing at Specbee. An enthusiast for Drupal, she enjoys exploring and writing about the powerhouse. While not working or actively contributing back to the Drupal project, you can find her watching YouTube videos trying to learn to play the Ukulele :)

Drupal 9 Drupal 9 Module Drupal Development Drupal Drupal Planet SEO

Leave us a Comment

 

Recent Blogs

Image Image removed.

Configuring the Drupal 9 Metatag Module - A Brief Guide

Image Image removed.

What Search Engines want and why Drupal is better for SEO

Image Image removed.

How to Comply with Cookie Laws using OneTrust Cookie Consent Module

Want to extract the maximum out of Drupal? TALK TO US

Featured Success Stories

Image removed.

Upgrading and consolidating multiple web properties to offer a coherent digital experience for Physicians Insurance

Image removed.

Upgrading the web presence of IEEE Information Theory Society, the most trusted voice for advanced technology

Image removed.

Great Southern Homes, one of the fastest growing home builders in the United States, sees greater results with Drupal 9

View all Case Studies

Drupal Planet

This year, the BADCamp is hosting two training sessions. The first day will see 'Getting Started with Drupal' by Tearyne, and the next day will see Decoupling Drupal using GraphQL & Gatsby: A Crash Course by Jesus.

Drupal Planet

Today we are talking about Not Gaming the Credit System with Tim Lehnen.

For show notes and more information visit: www.talkingDrupal.com/367

Topics
  • Episode 361
  • Who governs credit
  • What is “Gaming the System”
  • What is the motivation to game the system
  • What are the penalties
  • How is the Credit System used
  • How big of a problem is this
  • Why is this a difficult problem
  • Mike Herchel’s blog post
  • First time contributions
  • What to do if you see issues
Resources Hosts

Nic Laflin - www.nLighteneddevelopment.com @nicxvan John Picozzi - www.epam.com @johnpicozzi Tim Lehnen - @hestenet

MOTW

Facets The Facet module allows site builders to easily create and manage faceted search interfaces. In addition to the UI components that come out of the box, themers and module developers can build their own widgets that can optionally be contributed back to Drupal.org. Facets work with Drupal Core Search and Search API, meaning that code and configuration can be reused as-is with the most popular search solutions available to Drupal.