- 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.
- Python從菜鳥到高手(第2版)
- Mastering PHP Design Patterns
- Access 2016數據庫管
- 信息技術應用基礎
- Machine Learning With Go
- MySQL程序員面試筆試寶典
- Learning Jakarta Struts 1.2: a concise and practical tutorial
- C# 10核心技術指南
- Learning Google Apps Script
- Mastering Swift 4(Fourth Edition)
- 瘋狂Ajax講義(第3版)
- 羅布樂思開發官方指南:Lua 語言編程
- Rust Quick Start Guide
- 編寫高質量代碼:改善JavaScript程序的188個建議
- Python Data Visualization Cookbook(Second Edition)