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

Mastering Drupal 8 Views

Sub-title: 
Build sophisticated displays of your Drupal content, all without programming
Authors: 
Publisher: 
Packt Publication
Publication date: 
2016-05
Page count: 
250
ISBN-13: 
9781785886966

Accelerate your development process using Drupal 8 Views through this advanced, practical guide.

Key features

  • A practical, step-by-step guide with illustrative examples to give you a clear understanding of Drupal 8 views
  • Get the only book on the market that talks about Drupal 8 views and their importance for developers
  • Get an understanding of how views work and how they help to create modular applications

Topic and description

Learn how to build complex displays of content—all without programming.

Views was used on more than 80% of all Drupal 7 sites; now it is part of the Drupal 8 core. While many site builders and site owners are aware of Views, they don't understand how to take full advantage of its power to create many amazing pages and blocks. If they are using Views, they might build 10 different view displays with different filters, without knowing that a contextual filter would require only a single display.

Using our sample company, we'll take its existing content and evolve an ever more complex and powerful website for that company, starting with adapting the administration the user sees and moving on to making complex pages of information for site visitors.

While the book is written for Drupal 8, the similarities between Views in Drupal 7 and 8 make this a useful reference for Drupal 7 site builders also.

What you will learn

  • Create displays of content that are automatically updated when you add new content
  • Show maps and rotating image carousels on your site
  • Combine content to create composite displays using the same data in different ways
  • Use fields from more than one content type to create powerful views of multi-table data
  • Modify the field data being displayed, combining it in different ways or changing the HTML that might be normally generated
  • Add headers and footers above and below a views display
  • Make the output of your view look exactly as the designer specifies
  • Change the order in which a list of content is displayed, and limit the content shown to certain content types or values
  • Filter content using values passed to the view in the URL, making a single view work in different ways

Multilingual Guide in Drupal 8

Enable Multilingual modules

After installation, check if all Drupal 8 Multilingual modules are enabled. If not, enabled them

Menu: Manage > Extend
Path: /admin/modules#edit-modules-multilingual

Module:

  • Configuration Translation
  • Content Translation
  • Interface Translation
  • Language

About languages

Default language is chosen during installation. Let's add more languages for kickstart multilingual setup.

Learning Drupal 8

Sub-title: 
Create complex websites quickly and easily using the building blocks of Drupal 8, the most powerful version of Drupal yet
Publisher: 
Packt Publishing
Publication date: 
2016
Page count: 
328
ISBN-13: 
978-1782168751

About This Book

  • Build complete, complex websites with no prior knowledge of web development entirely using the intuitive Drupal user interface
  • Follow a practical case study chapter-by-chapter to construct a complete website as you progress
  • Ensure your sites are modern, responsive and mobile-friendly through utilizing the full features available in Drupal 8

Who This Book Is For

If you want to learn to use Drupal 8 for the first time, or you are transitioning over from a previous version of Drupal, this is the book for you. No knowledge of PHP, MySQL, or HTML is assumed or required

What You Will Learn

  • Set up a local “stack” development environment and install your first Drupal 8 site
  • Find out what is available in Drupal 8 core
  • Define content types and taxonomies—and find out when you should do so
  • Use the powerful Views module
  • Get hands-on with image and media handling
  • Extend Drupal using custom community modules
  • Develop the look and feel of your website using Drupal themes
  • Manage site users and permissions

In Detail

Drupal 8 sets a new standard for ease of use, while offering countless new ways to tailor and deploy your content to the Web. Drupal 8 allows user to easily customize data structures, listings, and pages, and take advantage of new capabilities for displaying data on mobile devices, building APIs, and adapting to multilingual needs.

The book takes you step by step through building a Drupal 8 website. Start with the basics, such as setting up a local “stack” development environment and installing your first Drupal 8 site, then move on to image and media handling, and extending Drupal modules. Push your knowledge by getting to grips with the modular nature of Drupal, and learning to extend it by adding new functionalities to create your new modules. By the end of the book, you will be able to develop and manage a modern and responsive website using Drupal.

Including Part Template

Many themers prefer to keep header / footer codes in a separate file and call the file in page.html.twig

Let's say you have created following file in your theme folder for header.
/THEME_NAME/includes/header.html.twig

And now you want to include this file in page.html.twig

Use below code to include this file.

{% include directory ~ '/includes/header.html.twig' %}

Entity Pilot - content staging for Drupal 8

Installation

  • Download and extract the module
  • Add the php-encryption library using composer or Composer manager.
    • For composer - from your Drupal installation directory run composer require "defuse/php-encryption:~1.2.
    • For Composer manager, refer to its documentation

Getting started

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8