Table of Contents for
Drupal 8 Quick Start Guide

Version ebook / Retour

Cover image for bash Cookbook, 2nd Edition Drupal 8 Quick Start Guide by J. Ayen Green Published by Packt Publishing, 2018
  1. Drupal 8 Quick Start Guide
  2. Title Page
  3. Copyright and Credits
  4. Drupal 8 Quick Start Guide
  5. Dedication
  6. Packt Upsell
  7. Why subscribe?
  8. Packt.com
  9. Contributors
  10. About the author
  11. About the reviewers
  12. Packt is searching for authors like you
  13. Table of Contents
  14. Preface
  15. Who this book is for
  16. What this book covers
  17. To get the most out of this book
  18. Download the color images
  19. Conventions used
  20. Get in touch
  21. Reviews
  22. Finding Your Way around Drupal
  23. Installing Drupal
  24. Readying the environment
  25. Running the Drupal installation script
  26. Site information
  27. Site maintenance account
  28. Regional settings
  29. Update notifications
  30. The behind-the-scenes tour
  31. Administration menu
  32. Tabs
  33. System message area
  34. Search widget
  35. User menu
  36. Main navigation
  37. Main content area
  38. Summary
  39. Structuring Content Types
  40. What is content?
  41. Content as fields
  42. Understanding content types
  43. Defining the content type
  44. Submission form settings
  45. Publishing options
  46. Display settings
  47. Menu settings
  48. Managing content type fields
  49. Designing a content type
  50. Content type settings
  51. Fielding the content type
  52. Field types
  53. Our content type field
  54. Adding fields to the content type
  55. Summary
  56. Managing Users
  57. User types
  58. User roles
  59. Managing permissions
  60. Users
  61. Creating a user account
  62. Summary
  63. Creating and Editing Content
  64. Using the WYSIWYG editor
  65. Title*
  66. Body
  67. Summary Field
  68. Body text
  69. Text format
  70. Tags
  71. Images
  72. Publishing the content
  73. Additional settings
  74. Revision log message
  75. Menu Settings
  76. Comment Settings
  77. URL Path Settings
  78. Authoring Information
  79. Promotion Options
  80. Completing the process
  81. Summary
  82. Making Drupal Even More Useful
  83. Pathauto
  84. Paragraphs
  85. Content moderation
  86. States
  87. Transitions
  88. Workflow application
  89. Summary
  90. Grabbing Global Readership
  91. Declaring additional languages
  92. Translating content
  93. User language selection
  94. Translating the user interface
  95. Summary
  96. Feeding the Masses – RSS
  97. Why feeds?
  98. Selecting content for a feed
  99. Modifying content for feed selection
  100. Pick-me flags
  101. Tags
  102. Views
  103. Creating the container view
  104. Creating the Pets feed
  105. Display name
  106. Title
  107. Format
  108. Feed settings
  109. Filtering the criteria
  110. Sort criteria
  111. Creating the Travel feed
  112. Title
  113. Feed settings
  114. Format
  115. Filtering criteria
  116. Creating the Leftovers feed
  117. Title
  118. Feed settings
  119. Format
  120. Filtering criteria
  121. Creating the Feed Links block
  122. Summary
  123. Welcome Home!
  124. BAD home page!
  125. Design improvements
  126. Too much content!
  127. No access to content
  128. No RSS feeds menu
  129. We need a Terms and Conditions page
  130. Making the changes
  131. Improving the Frontpage view
  132. Title
  133. Format
  134. Fields
  135. Filtering criteria
  136. Block settings
  137. Pager
  138. Adding an Archive
  139. Adding the RSS Feeds menu
  140. Fixing the Footer menu
  141. Summary
  142. Other Books You May Enjoy
  143. Leave a review - let other readers know what you think

Managing content type fields

A field can be thought of as a container that you put something in, that something in our context being content. Why do content types have fields rather than one big box in which to put the content, like a page in MS Word? Let's consider an example.

Suppose our content is related to appointments. Ms. Jones is making an appointment. One possibility is that the appointment is entered as text, like so:

January 20 at 1:30 PM Ms. Jones will see Mr. Kim to discuss investments.

All of the information needed is there. However, what happens when a list is needed of all the appointments for the next two weeks? Or when a list of all Ms. Jones's appointments are needed? Or when a decision is made to change the date format on all appointments? In those cases, having the information in a form that is difficult to aggregate, search, or edit globally is problematic.

What if the appointments were stored like a spreadsheet?

Date/Time Client Seeing Reason
January 20, 2018 Ms. Jones Mr. Kim Investment discussion

With the information segregated into meaningful pieces, it is much easier to find what is needed and edit it. That is the idea behind fields. 

We've been working with the Article content type. Let's take a look at how its fields are defined. At the top of the current page, we'll click on the Manage fields tab:

We saw the title field on the content type form. This screen is for optional fields. There could be no additional fields for the content type at all, but since all content types must have a title field, whatever its label, it isn't included here.

When we looked at the content edit form, we saw the title and body fields. The body field is listed here. The field is of a type meant to hold text without any specific use or format in mind. We'll be looking more at field types when we create a new content type later in this chapter. 

The comments field is meant to hold a comment about the content. There may be several instances of this field, one for each comment created. A comment is actually a content entity type on its own, and so even though the comments are seen when viewing the article's content, the actual contents of the comment field is simply the ID of the comment.

The image field is used for displaying an image along with the content, allowing an image to be uploaded. The image field is a reference of the information needed to retrieve the actual image from where it is stored, and the article image field, if an image is being used, will contain the address of that record.

The final field is for tags. Think of tags as categorical information that can be used for searching for the content. This is using another reference field type like comments and images, that is, taxonomy. We will be looking at taxonomy more in Chapter 7. 

Taxonomy is a content structure, referred to as an Entity in Drupal. Another type of entity is a UserArticle is a content type, also known as a Bundle, which is a sub-type of an Entity type known as a Node. Bundles can include Article, Page, Blog post, and other types of content that's intended for readers.

We can look at the other two tabs at the top of the page, Manage form display and Manage display when we create a content type. In fact, let's do that now!