Drupal 中术语引用的含义

Meaning of Term Reference in Drupal

我正在学习 Drupal。我看到了教授 Drupal 的 youtube 视频。我在学习 术语参考 时经常听到这个词。

我 google 出去并搜索了参考资料 link 但无法清楚地了解它。

所以请您简单说明一下

what is the Term Reference and why to use?

tl;dr 阅读 blockquote 以获得基本理解,其余是示例以理清思路。

In drupal, taxonomies(terms and vocabularies) are a type of entity like nodes, users. And reference fields are used to refer these entities in another entities.

So, a term reference field will be used to refer a term. So if I place a term reference field in a content type, then I can successfully access terms(related to term reference field) in nodes.

These terms are used to organize contents. Please refer this for more info: https://www.drupal.org/documentation/modules/taxonomy.

电子商务网站是组织内容的一个很好的例子。例如:所有产品(节点)都可以使用术语引用(分别为衬衫、裤子、鞋子)组织成衬衫、裤子、鞋子等。然后我可以使用这个字段只获取衬衫产品或鞋子产品。

在 vanilla drupal 中,标签是文章内容类型中使用的参考字段。当您创建许多文章时,将它们标记为某些术语,例如 first。然后你就可以抓取词条为 first.

的所有文章