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

States

The term state is lacking in context here and therefore can be somewhat ambiguous. For example, if I decide to walk to the store from my home, there are three states:

  • Being at home
  • Walking to the store
  • Arriving at the store

However, state, in the context of workflows, isn't necessarily the same. The default context is that state is synonymous with static state. Let's take another look at my example, this time with the states described with further precision:

  • Being at home - static
  • Walking to the store - transitional
  • Arriving at the store - static

States 1 and 3 represent static states – milestones and plateaus  that have been achieved and can remain as such. State 2 is transitional, in that it describes an activity that is occurring to lead from one static state to the next.

In looking at the states, as shown in the following screenshot, all three are static states:

  • Draft: The content has been, or is in the process of being, created
  • Published: The content is marked as published and is available to those user roles with permission to view published content of this type
  • Archived: The content has been published but is now removed from what is considered current material and may or may not be still available for viewing:

Notice that the Archived state has a select dropdown, while Draft and Published do not. That is because the former is an optional state, which can be deleted using the dropdown, but Draft and Published are not optional.

As you can see, the three states are static. That said, were a transitional state to be needed, it could be created by using the Add a new state link.

Let's take a closer look at what constitutes a state. Click on the Edit link for Published. The name, Published, can be changed if there is a more fitting term for your implementation. The two checkboxes that follow are important:

  • Published: Whether this term is used for the state, or another if you were to change the State label, checking this box means that when this state is reached, the content is considered published, and the permissions given to each user role with regards to published content apply, typically and particularly in that the content will be available for viewing.
  • Default revision: In Drupal, if the content type being used has been configured to allow revisions, each time the content is (re)saved, a new revision is created, and anyone with the proper permission can revert the content to an earlier version. If this box is checked, the current version when the state of the content reaches published will be considered the active version.

Next come the transitions. Let's look at Create new draft, as its inclusion hear is probably not intuitive. Click on the Edit link for it. Again, the label is editable should you have one more suited for your process.

Below the label, you see choices for the From, source, state and the To, target, state.  The target state for this transition is Draft and is not changeable, though were you to create your own transition, it would be. In either case, only one target state can be defined, since the content can only be in one state at any time.

More than source state can be selected. The two source states selected might not seem to make sense, given that the target is Draft. However, what events these choices account for are as follows:

  • Changing a draft and saving, with it remaining a draft, so Draft ⇒ Draft
  • Changing published content and saving it, but now as unpublished content needing moderation again, so Published ⇒ Draft

A similar peculiarity is true for the transitions of the Publish transition, because you might be (re)publishing already published content, or publishing draft content. 

A benefit to this architecture is that while an article is published, a new version of it can be created as a draft and passed through the moderation states until it gets published, becoming the new default—and viewable—version.