将元数据添加到不在 CMS 中的 Drupal 页面? [英] Add meta data to a Drupal page that isn't in the CMS?

查看:27
本文介绍了将元数据添加到不在 CMS 中的 Drupal 页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Drupal 的新手,我不得不在另一个开发人员编写的网站上工作.

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

我们已经找到并安装了 Metatag 模块,以便我们可以访问更改 CMS 内内容的元数据.这对大多数事情来说都很好,但是有一些类型的内容(不确定这里的确切 Drupal 术语),例如推荐和案例研究.每个个人推荐和案例研究在 CMS 中都有自己的区域来编辑内容,每个区域都有 Metatag 模块区域,让我们可以控制元数据.

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.

这些类型的内容在前端也有索引页面"(例如列出所有推荐的 website.com/testimonials).有没有人知道我可以在哪里编辑这些页面的元数据?

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?

它们不在 CMS 中作为经典页面,而且似乎无处可使用 Metatag 模块来编辑元数据.

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

能够更新 CMS 中的元数据或只是硬编辑模板文件都是可以接受的选择.

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

推荐答案

可以使用多种方法创建这些索引页.它们很可能是由视图模块创建的分类核心模块.

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.

根据其描述,Metatag 模块 似乎能够为视图页面提供元标记:

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.

使用 元标签视图概览模块,可以编辑元标签在 Metatags 的概览页面上查看页面.

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:

使用 Context 和包含的 Metatag:Context 子模块为特定路径(或其他条件)自定义元标记.

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

这篇关于将元数据添加到不在 CMS 中的 Drupal 页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆