Drupal 8 Quick Start Guide
上QQ阅读APP看书,第一时间看更新

Publishing options

Typically, content is entered in a rich text editor window in a form. Since this entry can very well be the first draft of that content, it may not be desired to have it published immediately. Some content types will be of this type, more often than not, while others, such as one that contains only a title and URL, will not require more than one draft. Because of this, publishing options are provided. Here, in the content type form, the default choice for these options can be set:

  •  Published: If selected, the content will be published as soon as it is saved
  • Promoted to front page: Not all content is necessarily intended for the homepage, and a piece of content having this value set, or not, can be used to determine whether it should appear there
In Drupal, the site's homepage is sometimes referred to as the front page, like in a newspaper.
  • Sticky at top of lists: When no other scheme is put in place, the front page displays a specified number of article teasers, and as more content is created, the older ones "drop" off the page. If a piece of content is meant to remain on the page while others cycle on and off, such as a welcome message, it can be accomplished by setting this value.
  • Create new revision: Imagine making changes to content, saving them, and realizing that something was changed that shouldn't have been. What do you do? The original version is gone! Or is it? When a new revision is created, it contains the content as it existed before the changes were made. Should the need arise, the current version can be reverted to that of the revision, providing a complete undo.