且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将元数据添加到不在 CMS 中的 Drupal 页面?

更新时间:2022-06-24 08:28:55

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

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.