- 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.
- DevOps:軟件架構(gòu)師行動(dòng)指南
- 從零構(gòu)建知識(shí)圖譜:技術(shù)、方法與案例
- Node.js Design Patterns
- 青少年軟件編程基礎(chǔ)與實(shí)戰(zhàn)(圖形化編程三級(jí))
- INSTANT Sencha Touch
- 概率成形編碼調(diào)制技術(shù)理論及應(yīng)用
- Cocos2d-x學(xué)習(xí)筆記:完全掌握Lua API與游戲項(xiàng)目開發(fā) (未來(lái)書庫(kù))
- 執(zhí)劍而舞:用代碼創(chuàng)作藝術(shù)
- GameMaker Essentials
- Python入門很輕松(微課超值版)
- .NET 4.5 Parallel Extensions Cookbook
- 3ds Max印象 電視欄目包裝動(dòng)畫與特效制作
- Java編程從入門到精通
- BeagleBone Robotic Projects(Second Edition)
- Java Web從入門到精通(第2版)