Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Drupal 8 Ultimate Guide, Study Guides, Projects, Research of Web Programming and Technologies

Drupal 8 Ultimate Guide for users

Typology: Study Guides, Projects, Research

2018/2019

Uploaded on 04/10/2019

kangminz
kangminz 🇺🇸

2 documents

1 / 32

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
The Ultimate Guide
to Drupal 8
Revised and updated for Drupal 8.1, as of April, 2016.
Angela Byron, Director, Community Development, Acquia
Jeffrey A. “jam” McGuire, Evangelist, Developer Relations, Acquia
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20

Partial preview of the text

Download Drupal 8 Ultimate Guide and more Study Guides, Projects, Research Web Programming and Technologies in PDF only on Docsity!

The Ultimate Guide

to Drupal 8

Revised and updated for Drupal 8.1, as of April, 2016.

Angela Byron, Director, Community Development, Acquia

Jeffrey A. “jam” McGuire, Evangelist, Developer Relations, Acquia

  • Introduction _____________________________________________________________________________________
  • Authoring Experience _____________________________________________________________________________
  • Mobile Improvements _____________________________________________________________________________
  • Multilingual++ ____________________________________________________________________________________
  • Site Builders FTW _______________________________________________________________________________
  • Front-end Developer Improvements ________________________________________________________________
  • Back-end Developer Improvements ________________________________________________________________
  • Better, Right Down to the Core ____________________________________________________________________
  • Your Burning Questions __________________________________________________________________________
  • The Ultimate Guide to Drupal

Authoring Experience

A major area of focus in Drupal 8 was around the out-of-the-box experience for content authors and editors—the folks who actually use a Drupal website every day. Here are some of the changes you’ll see.

Spark

Spark is an Acquia initiative created by Dries Buytaert to improve Drupal core’s default authoring experience. The Acquia development team for Drupal core analysed both proprietary and open source competitors to Drupal and worked hard to make usability enhancements to Drupal core over the course of the release in collaboration with other Drupal core contributors. They also created back ports of key Drupal 8 UX improvements for Drupal 7 , which allowed them to be tested and improved under everyday, real use even before the release of Drupal 8.

WYSIWYG Editor

Drupal 8 ships with the CKEditor WYSIWYG editor in the default installation. In addition to supporting what you’d expect in a WYSIWYG editor—buttons for bold, italic, images, links, and so on—it supports extras, such as easily editable image captions, thanks to CKEditor’s new Widgets feature, developed specifically for Drupal’s use. It is fully integrated into Drupal 8, from user roles and permissions to image management, and it ensures that we keep the benefits of Drupal’s structured content concepts in our WYSIWYG implementation.

Drupal 8 also sports a drag- and-drop admin interface for adding and removing buttons in the WYSIWYG toolbar, which automatically syncs the allowed HTML tags for a given text format, vastly improving usability. Buttons are contained in “button groups” with labels that are invisible to the naked eye, but that can be read by screen readers, providing an amazing, accessible editing experience for visually impaired users.Though core will only support CKEditor, Drupal 8’s Editor module wraps around the WYSIWYG integration, so other libraries and contrib modules can be tightly integrated as well.

In-place Editing

In Drupal 7, if you need to make a correction on a website—for example, a typo, or a missing image—you must use a back-end form, which is visually separated from the front-end website where content will appear. The Preview button doesn’t help, because the results of preview are shown in the administrative theme (twice, in case you missed it the first time).

Drupal 8’s in-place editing feature allows editors to click into any field within a piece of content, anywhere it appears on the front-end of the site and edit it right there, without ever visiting the back-end editing form. Full node content, user profiles, custom blocks, and more are all editable in-place as well.

To replace Drupal 7’s default editing behavior, which required a more time-consuming visit to the administrative back-end of the site, this in-place editing feature has been backported to Drupal 7 as the Quick Edit module.

Redesigned Content Creation Page

A community-led effort from Drupal’s Usability team resulted in a redesigned content creation page in Drupal 8. It contains two columns: one for the main fields (the actual “content” part of your content) and another for the “extras”—optional settings that are used less often. The new design lets content authors focus on the task at hand while having important publishing options just a click away.

Refreshed Admin

Theme

The administrative theme in Drupal 8 is a visually refreshed version of Drupal 7’s, based on a formal style guide which can also be used by module developers and others concerned about backend usability.

Draft Support in Core

A draft revision-state for content is now has API support under-the-hood in Drupal 8 core. This will make publishing-workflow modules, like Workbench , much easier to implement in Drupal 8 and beyond.

The Responsive Bartik and Responsive Tables modules can make Drupal 7 behave similarly. Numerous responsive base themes for Drupal 7, including Omega and Zen , help you build a responsive design for your website.

Mobile-friendly Toolbar

Drupal 8 sports a responsive administrative toolbar that automatically expands and orients itself horizontally on wide screens and collapses down to icons and orients itself vertically on smaller screens. Like all new front-end features in Drupal 8, this one was designed with accessibility in mind. The toolbar allows screen-reader users to easily navigate to various parts of a site.

If you’re interested in this feature for Drupal 7, check out the Mobile Friendly Navigation Toolbar module.

Front-end Performance

One of the biggest factors that can make or break the mobile experience is the raw performance of a website. As a result, a lot of work went into minimizing Drupal 8’s front-end footprint. Page loads were sped up by replacing jQuery with efficient, targeted, native JavaScript in many cases and out-of-the-box Drupal 8 loads no JavaScript files at all for anonymous visitors. Drupal 8’s caching is a big advance over Drupal 7’s. It includes entity caching and powerful, granular cache tags which allow for targeted cache clearing so pages stay fast longer. Drupal 8.1 also introduces BigPipe page delivery as an experimental core module in Drupal 8.1. See the Backend Developer Improvements chapter of this ebook for more on caching and BigPipe’s effect on user experience thanks to faster perceived loading. Additionally, lighter-weight, mobile-friendly alternatives replaced JavaScript-intensive features like the Overlay module. Drupal 8 uses a simple “Back to site” link in the admin toolbar while in an administrative context. See Escape Admin for a Drupal 7 equivalent.

Multilingual++

The Multilingual Initiative (D8MI), led by Acquia’s own Gábor Hojtsy with the participation of over 1,000 contributors , was a major development focus for Drupal 8. Check out Gábor’s excellent Drupal 8 Multilingual Tidbits series if you’re interested in all the details about D8MI.

Multilingual First

Drupal 8 is a CMS built from the ground up for multilingual use. You can perform your entire site installation and setup in your language of choice. Right on the installer page, it auto-detects your browser’s language and auto-selects that language for installation in the drop-down for your convenience. When you install Drupal in any language other than English (or later add a new language to your site), Drupal 8 automatically downloads the latest interface translations from localize.drupal.org in your language, too. This works for right-to-left languages, such as Arabic and Hebrew, too. Drupal’s interface translations are dependent on local communities for accuracy and completeness, so some translations may be missing some strings. On localize.drupal.org , you can always contribute those yourself and help your language community take advantage of Drupal. Drupal 8 does away with the previous Drupal-concept of English as a “special” language. If you select a language other than English on installation, the English option will no longer show in

your site configuration unless explicitly turned on. Also, you can make English itself “translatable” so that you can convert strings to something more tailored to your users. For example, you can change “Log in / Log off” to “Sign in / Sign off.”

Streamlined Translation UIs

Drupal’s international community put a lot of effort into the user experience of Drupal 8’s multilingual functionality. You’ll see well-integrated and streamlined translation interfaces throughout Drupal 8.

Transliteration Support

One really handy addition to Drupal 8 is the inclusion of the Transliteration module in core. It automatically converts special characters like “ç” and “ü” to “c” and “u” for friendlier, more human-readable machine names, file uploads, paths, and search results.

...And More!

Here are some extras for site builders that are worth mentioning:

Ž Several of the pages in core that are using Views allow for much easier language-based customization, especially the admin views, where adding language filters, a language column, and so on, are easy to put together. Ž The Drupal 8 core Content Translation module is well-integrated with Search in core and the Search API can access language information as well. Ž The language selection system now supports one or more separate admin languages, for easier management of multilingual sites by site admins who might speak different languages.

Site Builders FTW

Although the authoring experience improvements and mobile improvements in Drupal 8 tend to focus on end users and content authors of Drupal websites, Drupal 8 also includes a huge push to improve the site building tools.

Views in Core!

The Views module, the most frequently used contributed module in Drupal , is now part of Drupal 8 core and is more tightly integrated into Drupal then ever before. Beyond providing a query-builder UI and serving up the results in a variety of formats for site visitors, baking Views into Drupal core allowed core developers to replace numerous previously hardcoded admin pages with Views listings. This removed thousands of lines of boilerplate code from Drupal core and more importantly, gives site builders the power to customise most of the main administrative listings (or even build brand new ones!). The Content, People, and Files admin pages, as well as various sidebar blocks, several RSS feeds, and the default front page have been converted to Views. Almost everyone who has built a site of any complexity in Drupal knows how to use Views. This makes customizations of these pages—for example

to add a “Full name” search to the People listing, or thumbnails next to items in the Content listing—just a few clicks away.

Everything you know and love from Views is included in Drupal 8 core—and even a few extras such as mobile-friendly administration, some user experience and accessibility improvements, the ability to create responsive table listings, and the ability to turn any listing into a REST export that can be consumed by a mobile application or other external service.

More and Better Blocks

In Drupal 8, you’ll notice a few new features as they relate to blocks. First, just like with Views replacing admin pages, several previously hard-coded site components have been converted to blocks, including breadcrumbs, site name, and slogan. This makes it easier to adjust page organization in the user interface, and enables in-place editing, and makes for easier theming.

Take a Tour

Drupal 8’s new Tour module lets site builders create contextual, step-by-step tooltip-style walkthroughs of your site. It can help with overviews of administrative interfaces, introduce new terminology, and walk through the steps involved in configuring components of your site.

Both Less and More, Module-wise

You’ll find Drupal 8 missing some modules that shipped with Drupal 7, namely Blog, Dashboard, Open ID, Overlay, PHP filter, Poll, Profile, and Trigger (as well as the Garland theme). You’ll find several new modules in which functionality has been split out into more granular chunks, such as Menu Links/Menu UI, Block/Custom Block, Ban/History/Actions (formally baked into User/Node/System module), and so on.

Heather James’s “Drupal 8 Site Building Preview—Less Is More” has a great rundown of the state of modules, including contrib modules that are now rendered obsolete due to the functionality that ships with Drupal 8 core.

The bottom line: Drupal core ships with enough functionality out-of-the-box that for the first time site builders should be able to create fairly sophisticated sites without having to install 30+ contributed modules. Hooray!

Migration Path

Drupal’s major version upgrade path has been replaced with a migration path, courtesy of a D8 port of the Migrate and Migrate Drupal-to-Drupal modules. As of Drupal 8.1, there is also a Migration UI in core, which allows major Drupal version migrations without resorting to command-line tools. Both a migration path from Drupal 6 (already in Drupal 8.x) and Drupal 7 (partially in 8.x and under development) are supported. The migration path allows you to keep your Drupal 6/7 site running while you build your new Drupal 8 site, greatly minimizing downtime over the old update.php method.

For more on Drupal 8’s improved major version upgrade process, check out Moshe Weitzman’s “Drupal 8—Improved Upgrade Process” blog from December 2013.

.

Front-end Developer Improvements

Drupal 8 contains a lot of improvements for front-end developers, including HTML5, additional helper libraries, accessibility enhancements, new themes and UI elements, and faster performance, to name a few.

HTML

All of Drupal’s output has been converted to use semantic HTML5 markup by default, as part of an overarching effort to clean up Drupal’s default markup. This means you’ll find tags such as