官术网_书友最值得收藏!

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.

As a shortcut, go to /admin/structure/types/manage/{content_type}/display to access this page.
Fig 1.15

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:

Fig 1.16

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.

Fig 1.17: Add new Content view mode

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:

Fig 1.18

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.

主站蜘蛛池模板: 稷山县| 信丰县| 余干县| 砚山县| 宜春市| 铜山县| 石河子市| 通江县| 南部县| 仪征市| 丰镇市| 淮南市| 乐山市| 新巴尔虎左旗| 弥勒县| 开封市| 乌兰县| 定安县| 邮箱| 叙永县| 平度市| 怀远县| 寿光市| 河池市| 盐亭县| 珠海市| 安泽县| 深泽县| 嘉峪关市| 安西县| 榆中县| 安福县| 新竹县| 广元市| 泽普县| 兴宁市| 东辽县| 家居| 辛集市| 琼海市| 瑞昌市|