- Drupal 8 Blueprints
- Alex Burrows
- 361字
- 2021-07-03 00:03:26
How's it done
Moving back to our Post content type, we need to modify the way the content is being displayed. To do this, we need to go to the Manage display for our content type.

In Fig 1.15 we can see are our fields and Custom display settings at the bottom. What we now want to do now is to create a new view mode for Related content; to do this, we click on Custom display settings, and then we can see the different view modes and Manage view modes. This view mode will be available for any content type.
When we are redirected to the view modes configuration page, we can see the following:

If we click on Add new Content view mod we can now enter our new view mode and give it a name of Related content.

In Fig 1.17, we will need to enter the Name; let's fill this with Related content and then click on Save. We will now see our view mode appearing in the list on view modes. Now that this has been added, we can enable the view mode for our content type. This now allows us to manage our display in the Manage display interface, but first, we need to enable it on the Manage display page, so let's move back to this page and enable it. Back on this page, we can see a Custom display settings; if we open this up, we can now see our Related content view mode, so let's enable that now:

Once this is enabled, we will see it appear beneath the main tabs on the page, as per Fig 1.18.
If we click on this, we will be taken to a page that shows the same three fields as we have on default; from here, we can again drag the fields we want in whichever order we want, and this won't affect the other two view modes for our Post content type.
- Python程序設計教程(第2版)
- GitLab Cookbook
- Oracle 12c中文版數據庫管理、應用與開發實踐教程 (清華電腦學堂)
- 假如C語言是我發明的:講給孩子聽的大師編程課
- Learning Apache Kafka(Second Edition)
- Mastering KnockoutJS
- Python數據可視化之Matplotlib與Pyecharts實戰
- Elasticsearch for Hadoop
- HoloLens與混合現實開發
- Scala編程實戰
- Java 9 with JShell
- 軟硬件綜合系統軟件需求建模及可靠性綜合試驗、分析、評價技術
- Flutter從0基礎到App上線
- Android開發進階實戰:拓展與提升
- Zend Framework 2 Cookbook