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

泄露秘密 提交于 2019-12-31 04:02:32

问题


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:


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.



来源:https://stackoverflow.com/questions/23788975/add-meta-data-to-a-drupal-page-that-isnt-in-the-cms

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!