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

Imagefield Slideshow

Overview of the Module:

Provides a Slideshow formatter for Image fields, using JQuery Cycle plugin.

This module is developed specifically to render the slideshow from the image field.
Imagefield Slideshow module will provide a field formatter for image fields, so that multiple images are uploaded to that particular image field and the formatter helps you to render those images a slideshow.

Potentially the administrator would be able to change the rendering settings of the slideshow like transition effects and image size to render.

Realname: Remove 15 characters username trim

In case your user has long realname (15+ characters), such username will be trimmed to 15 characters and "..." added by default. If you wish to have displayed full name instead the trim version then place this code (D7) into your template.php:

/**
 * Overrides template_process_username().
 */
function THEMENAME_preprocess_username(&$variables) {
  $account = $variables['name_raw'];
  $variables['name'] = check_plain($account);
}

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.

Docker based development environment

I have rewritten the Docker based development environment to use the images provided by Docker4Drupal (https://github.com/wodby/docker4drupal). So some of the comments below become outdated. The comments about using symlinks or vfs are uninteresting, as the use of symlinks/vfs in that way are not the docker way.

Pages

Subscribe with RSS Subscribe to RSS - Designers/themers