- Drupal 8 Blueprints
- Alex Burrows
- 185字
- 2021-07-03 00:03:26
Adding more fields
Moving back to our content type, let's incorporate the taxonomy vocabulary we have just created.
We need to go to the Manage fields tab inside the Post content type. Once here, we need to add our new field. Let's do that now. Click on + Add field; once again, this will redirect us to a field settings page. For this field, we need to select Reference | Taxonomy term. So now, we need to fill in the Label; let's call this Post category. Once this is done, click on Save field settings; now we can fill in our settings for this field.
Leave everything as it is, but under Reference method, there is a checkbox labelled Create referenced entities if they don't already exist, which basically allows any term that's typed but doesn't already exist to be created. Pretty cool, eh?
Directly beneath that, we have checkboxes for our various vocabularies, as we can see here in Fig 1.11:

Now that we have done this, let's save our field and go to create our first post!
- Puppet 4 Essentials(Second Edition)
- Instant Zepto.js
- Learn Scala Programming
- Getting Started with NativeScript
- 零基礎(chǔ)輕松學(xué)SQL Server 2016
- 學(xué)習(xí)正則表達(dá)式
- Visual Basic程序設(shè)計(jì)上機(jī)實(shí)驗(yàn)教程
- Cocos2d-x Game Development Blueprints
- Android應(yīng)用開發(fā)深入學(xué)習(xí)實(shí)錄
- Solutions Architect's Handbook
- UML2面向?qū)ο蠓治雠c設(shè)計(jì)(第2版)
- Flask開發(fā)Web搜索引擎入門與實(shí)戰(zhàn)
- JavaScript Mobile Application Development
- 趣學(xué)數(shù)據(jù)結(jié)構(gòu)
- Three.js Essentials