Add meta data to a Drupal page that isn't in t

2020-04-20 21:29发布

I'm new to Drupal and I'm having to work on a site coded by another developer.

We have found and installed the Metatag module in order to give us access to change metadata on content inside the CMS. This is great for most things, however there are some types of content (not sure the exact Drupal terminology here) such as Testimonials and Case Studies. Each individual testimonial and case study has their own area in the CMS to edit the content, and these each have the Metatag module area to give us control over the metadata.

These types of content also have 'index pages' on the front-end (e.g. website.com/testimonials which lists all testimonials). Does anyone have any ideas as to where I can edit the metadata for these pages?

They're not in the CMS as classic pages and there seems to be nowhere to use the Metatag module to edit the metadata.

Either being able to update the metadata in the CMS or just hard-editing the template files would be an acceptable option.

1条回答
倾城 Initia
2楼-- · 2020-04-20 21:53

These index pages can be created with various methods. It’s likely that they are created by the Views module or with the Taxonomy core module.

According to its description, the Metatag module seems to be capable of providing metatags for Views pages:

Customize meta tags for custom pages built using Panels and Views using included submodules.

With the Metatag Views Overview module it’s possible to edit the metatags for Views pages on Metatags’s overview page.


If nothing else works, it seems to be possible to provide metatags based on paths:

Customize meta tags for specific paths (or other conditions) using Context and included Metatag:Context submodule.

查看更多
登录 后发表回答