- Drupal 8 Blueprints
- Alex Burrows
- 400字
- 2021-07-03 00:03:25
Adding taxonomy vocabulary
Now, let's go ahead and create our taxonomy vocabulary.
If you use the menu at the top and click on Manage | Structure | Taxonomy, you will be taken to the Taxonomy admin page:

In Fig 1.8, we can see the layout for adding our vocabulary; we can see that there is already a vocabulary called Tags. This will be sufficient for what we need; however, we want to create a new vocabulary to understand how this is done.
Now, if we click on + Add vocabulary, we are taken to another configuration page, where we have two fields:

We have a Name and a Description field to enter; the name is what our vocabulary will be called, and the description will appear underneath. After filling in these fields and saving, we are redirected to a page that allows us to add terms.
There are a few ways to create terms by default. We can either add the term directly on this page, or create the terms as we create the content, which is done using an autocomplete text field that will detect an existing term or allow us to create a new one. For now, however, let's create a term manually, and then we can explore how to add a term within our post.
If we click on + Add term, we are redirected to another page that allows us to add details for this term:

What we see on this page is as follows:
- Name: This is the name of our term
- Description: This is a description related to the term
- Relations: This allows us to relate the term to other terms
- URL alias: This lets us create an SEO-friendly path for the term page; we can automate this later, which we will cover later in the chapter
Once we populate these fields and save them, we will see the same page, but we also see a status message saying we have Created a new term Drupal at the top. We can either continue adding terms or return to the vocabulary page. In Drupal taxonomy is an entity type, and again our vocabulary is a bundle. So, we have the power to add fields to our taxonomy terms. We can add any field to this taxonomy term.
- JMeter 性能測試實戰(第2版)
- Wireshark Network Security
- Full-Stack Vue.js 2 and Laravel 5
- 區塊鏈技術進階與實戰(第2版)
- Spring Boot+MVC實戰指南
- 代替VBA!用Python輕松實現Excel編程
- OpenMP核心技術指南
- R語言數據挖掘:實用項目解析
- 深入淺出 HTTPS:從原理到實戰
- Java RESTful Web Service實戰
- ASP.NET Core and Angular 2
- Learning D3.js 5 Mapping(Second Edition)
- 讀故事學編程:Python王國歷險記
- Python面向對象編程(第4版)
- Flink原理深入與編程實戰:Scala+Java(微課視頻版)