Drupal 8 Development: Beginner's Guide

Sub-title: 
Explore the new features of Drupal 8 through practical and interesting examples while building a fully functional recipe sharing website
Publisher: 
Packt Publishing
Publication date: 
2016-07
Page count: 
398
ISBN-13: 
978-1785284885

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.

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.

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.

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.

What you will learn

  • Set up your Drupal development environment
  • Brush up on your understanding of the concepts of object-oriented programming, module development, and test-driven development
  • Install and configure Drupal, add new content type, and work through lot of dummy content to create listing pages using views
  • Enhance the content author’s user experience and custom block
  • Find out about field Type API and explore custom theme development
  • Manage various media types in Drupal for your content-rich website

Configuring the Search API server (D8)

Create a new Search API server

Go to http://example.com/admin/config/search/search-api
○ Click on "add server"
○ Add a name for the server
Add the connection configuration to your Solr server and leave the other defaults

Drupal 8 modules and Solarium installation

These steps are only for Drupal 8.

Download modules using Composer

Better download the modules using Composer than Drush. This will install the required libraries, including the class Solarium. General (deeper) instructions may be found at Using Composer to install Drupal packages through Drupal.org

Run these commands in the Drupal root folder.

Add fields to a block [D8]

This documentation is written for the 8.x-2.x version of Display Suite.

By following this method the site builder gets a block to place that can have a set of fields as defined by a view mode. The block's display can be templated in twig accordingly, and its theming will reflect any selected layouts in the display suite controls.

Install PECL uploadprogress on Ubuntu 12.04 to 22.04

If saw this warning in your site's status report:

Your server is capable of displaying file upload progress, but does not have the required libraries. It is recommended to install the PECL uploadprogress library.

… googled for a solution, and arrived here, then please read this core issue: #2718253: Uploadprogress PECL, documentation and recommendation on status report.

Flag_notify

Flag Notify is a module that allows flexible email-based notification of comments, content and (optionally) groups using the popular Flag framework.

These pages describe the installation and usage of the module.
Click on the documentation specific for your version of the module:

Pages

Subscribe with RSS Subscribe to RSS - Beginner