Book Image

Drupal 8 Development: Beginner's Guide - Second Edition

By : Neeraj Kumar, Tassos Koutlas, Samuel Keen, Edward Crompton, Krishna Kanth, Rakesh James, Malabya Tewari, Kurt Madel
Book Image

Drupal 8 Development: Beginner's Guide - Second Edition

By: Neeraj Kumar, Tassos Koutlas, Samuel Keen, Edward Crompton, Krishna Kanth, Rakesh James, Malabya Tewari, Kurt Madel

Overview of this book

<p>Drupal is one of the most popular platforms with which to develop websites. With more and more organizations looking to build engaging digital experience for their stakeholders, the Drupal Content Management System offers a mobile-first platform with native support for integrations, better performance, and scalability. The new version brings significant changes to its module development and theme creation techniques, improving performance and refining the development experience.</p> <p>This book will help you develop your own website using Drupal 8 in a step-by-step manner. You’ll start off by setting up your development environment, enabling you to begin writing custom code for a Drupal-powered website through PHPStorm. You will learn about configuration management and creating custom content types before exploring the HTML5 features included with Drupal 8.</p> <p>You will then get familiar with Drupal 8’s mobile-first features, explore the built-in WYSIWYG and in-line editing capabilities of Drupal 8, and enhance the overall authoring experience. Later, you will create and enhance a Media Entity Lightbox module, before taking an in-depth look at the Views module.</p> <p>We then cover some advanced search concepts and walk you through the installation and integration of the Java-based Apache Solr search engine. Finally, you will explore and configure the built-in support for REST and extend its support by installing the RESTful module. By the end of the book, you will have created a recipe sharing website while gaining a solid understanding of development best practices for Drupal 8.</p>
Table of Contents (20 chapters)
Drupal 8 Development Beginner's Guide Second Edition
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface
Index

Time for action – building a random top rated recipe block with Views


We are going to go beyond the basic Views wizard view creation user interface and learn a few more advanced features and configuration of Views.

  1. Open our d8dev site in your browser, click on the Structure link in the Admin toolbar, and click on the Views link.

  2. Click on the Add new view link at the top of the Views page.

  3. Enter Random Top Rated Recipe as the View name.

  4. Select Recipe for the of type options.

  5. Check the Create a block checkbox.

  6. Next, click on the Save and edit button, as we want to configure some more advanced options that are not available as part of the basic block creation wizard.

    Now we are going to add the Recipe content fields that we want to display in this block. Remember, this block is going to be displayed on our d8dev site's front page, so we want to make it visually appealing. Note that the Title field is already included by default.

  7. Click on the Add button for FIELDS, search for image, and select the checkbox...