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

查看:130
本文介绍了将元数据添加到不在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.

类型的内容还在前端有索引页(例如,网站/表彰,其中列出所有推荐)。有没有人有任何想法可以编辑这些页面的元数据?

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 模块似乎能够为Views页面提供元标记:

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.

使用 Metatag视图概述模块,可以在Metatags的概述页面上编辑Views页面的元标记。

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:


为特定路径(或其他条件)自定义元标记g 上下文,并包含Metatag:Context子模块。

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

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

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