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

Telling Your Own Story with Drupal

Latest news is an important part of any website for many businesses. They allow the business to engage with their customers and keep their employees updated. In this chapter, we will create a simple news website using Drupal 8 core functionality. This can also be used as a blog; we're just making it sound exciting and relatable.

This chapter will be a little more in depth in showing how the basic functionality of Drupal works; this will allow quicker development later throughout the book.

We will explore the following topics in the chapter:

  • Creating a new content type
  • Creating taxonomy terms and associating them to news posts
  • Using custom views to display the listing and individual news pages
  • Enabling a comment field to allow user comments
  • Referencing other news articles on the site
  • Setting up restricted articles
  • Understanding permissions and roles
  • Configuring the editor experience

We will learn how to create a content type and implement the fields required for displaying the news articles; this is more of a refresher on how to do things. We won't go into this much detail on beginner items again. If in doubt, take a relook at this chapter.

We will also create custom view modes for displaying different display types using references from the post, and then finally, move into the theme layer inside twig templates for displaying the content.

主站蜘蛛池模板: 乐至县| 讷河市| 五寨县| 炎陵县| 定西市| 白朗县| 潮安县| 淄博市| 丹寨县| 安庆市| 平利县| 江都市| 虎林市| 定南县| 盐池县| 新安县| 车险| 长宁县| 大安市| 资源县| 乌鲁木齐市| 潼关县| 桐庐县| 南木林县| 宜城市| 郸城县| 日土县| 清水县| 同仁县| 泸州市| 遂宁市| 青河县| 太仆寺旗| 巩义市| 社旗县| 郴州市| 北流市| 蕲春县| 驻马店市| 新野县| 台州市|