万本电子书0元读

万本电子书0元读

顶部广告

Mastering Drupal 8电子书

售       价:¥

3人正在读 | 0人评论 6.2

作       者:Chaz Chumley, William Hurley

出  版  社:Packt Publishing

出版时间:2017-07-27

字       数:38.0万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Mastering Drupal can lead to a mighty website - discover what Drupal 8 can really do with hidden techniques, best practices, and more! About This Book ? The most up-to-date advanced practical guide on Drupal 8 with an in-depth look at all the advanced new features such as authoring, HTML markup, built-in web services, and more ? If you are looking to dive deep into Drupal 8 and create industry-standard web apps, then this is the ideal book for you ? All the code and examples are explained in great detail to help you in the development process Who This Book Is For This book is ideally suited to web developers, designers, and web administrators who want to dive deep into Drupal. Previous experience with Drupal is a must to unleash the full potential of this book. What You Will Learn ? Discover how to better manage content using custom blocks and views ? Display content in multiple ways, taking advantage of display modes ? Create custom modules with YAML and Symfony 2 ? Easily translate content using the new multilingual capabilities ? Use RESTful services and JavaScript frameworks to build headless websites ? Manage Drupal configuration from one server to another easily In Detail Drupal is an open source content management system trusted by governments and organizations around the globe to run their websites. It brings with it extensive content authoring tools, reliable performance, and a proven track record of security. The community of more than 1,000,000 developers, designers, editors, and others have developed and maintained a wealth of modules, themes, and other add-ons to help you build a dynamic web experience. Drupal 8 is the latest release of the Drupal built on the Symfony2 framework. This is the largest change to the Drupal project in its history. The entire API of Drupal has been rebuilt using Symfony and everything from the administrative UI to themes to custom module development has been affected. This book will cover everything you need to plan and build a complete website using Drupal 8. It will provide a clear and concise walkthrough of the more than 200 new features and improvements introduced in Drupal core. In this book, you will learn advanced site building techniques, create and modify themes using Twig, create custom modules using the new Drupal API, explore the new REST and Multilingual functionality, import, and export Configuration, and learn how to migrate from earlier versions of Drupal. Style and approach This book takes a practical approach with equal emphasis on examples and illustrative screenshots.
目录展开

Title Page

Copyright

Mastering Drupal 8

Credits

About the Author

Acknowledgments

About the Author

About the Reviewer

Customer Feedback

www.PacktPub.com

Why subscribe?

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Downloading the color images of this book

Errata

Piracy

Questions

Developer Workflow

Deciding on a local AMP stack

The role of Composer

Installing Composer locally

Installing Composer globally

Using Composer to create a Drupal project

Speeding up tasks using Drush

Using Drush wrapper

Installing Drush globally

Using Drush to create a Drupal project

A quick look at Drupal Console

Accessing Drupal Console locally

Installing Drupal using Drupal Console

Installing Drupal Console globally

Running a built-in PHP web server

Using Git to manage source code

Installing Git

Configuring Git

Creating a remote repository

Setting up a local repository

Tracking and committing files with Git

Adding a remote origin

Pushing files to the remote repository

Virtualizing an environment

Using Drupal VM as a web starter

Summary

Site Configuration

Assumptions

Exploring Drupal's interface

Managing Drupal

Basic site settings

SITE DETAILS

FRONT PAGE

ERROR PAGES

Performance

Clearing cache

Using Drush to clear cache

Using Drupal Console to clear the cache

Configuration overrides

Using Drush to manage configuration

Listing configuration variables

Retrieving specific variables

Setting configuration variables

Using Drupal Console to manage configuration

Listing configuration variables

Retrieving specific variables

Setting configuration variables

Working with the File system

Managing file paths

Regional settings

Date and time formats

Adding new date formats

Summary

Managing Users, Roles, and Permissions

Assumptions

Exploring People

Managing roles and permissions

What is a role?

Creating a role

Reordering roles

Editing a role

Setting permissions

Working with users

Adding a user

Bulk updating users

Configuring Account settings

CONTACT SETTINGS

ADMINISTRATOR ROLE

REGISTRATION AND CANCELLATION

Managing user fields

Adding fields

Managing form display

Using Drush to manage roles

Listing roles

Creating roles

Deleting roles

Listing permissions

Adding permissions

Removing permissions

Using Drush to manage users

Displaying user information

Assigning roles

Removing roles

Blocking a user

Unblocking a user

Creating user accounts

Cancelling user account

Resetting passwords

Creating a one-time login

Summary

Content Types, Taxonomy, and Comment Types

Assumptions

Exploring Content types

Submission form settings

Preview before submitting

Publishing options

Managing revisions

Reverting content

Display settings

Menu settings

Managing fields

Field settings

Creating custom content types

Managing fields using the Field UI

Deleting fields

Adding new fields

Author field

Teaser field

Content field

Featured Image field

Taxonomy, Vocabularies, and Terms

Adding a vocabulary

Adding terms

Adding a Taxonomy field

Working with Comment types

Adding a Comment type

Adding Comment type field

Working with form and content display

Reordering fields

Modifying Field Widgets

Disabling fields

Using Drupal console to generate dummy content

Creating vocabularies

Creating comments

Creating nodes

Summary

Working with Blocks

Assumptions

Block layout and Regions

Demonstrating block regions

Placing blocks into regions

Block configuration, settings, and visibility

Managing the block title

Using the Contextual menu

Managing visibility settings

Content types restriction

Page restriction

Role restriction

Creating a custom block

Defining the Region

Exploring the Custom block library

Editing custom blocks

Managing block types

Adding fields to blocks

Manage form display

Reordering fields

Modifying field formats

Managing display

Using the Place block interface

Deleting Blocks from Block layout

Summary

Content Authoring, HTML5, and Media

Assumptions

Responsive admin

CKEditor and text formats

Text formats

Toolbar configuration

CKEditor plugin settings and filters

Enabled filters

Filter processing order

Filter settings

Working with images

Image alignment

Image captions

Managing displays

Reordering fields

Controlling labels

Using Field Formatters

Formatting a date field

Managing the Teaser display

Using Better preview

Custom Display settings

Adding a view mode

Image styles

Configuring image styles

Adding image styles

Quick edit

Summary

Understanding Views

Customized lists of contents

View displays

Creating view pages and blocks

Block display

Working with filter criteria and sorting

Rearrange filter criteria

Expose filters

Formatting rows

Row styling

Fields

Content

Field formatting

View formats

Unformatted list

Grid

HTML List

Table

Using advanced features

Relationships

Contextual filters

Display all results for the specified field

Provide a default value

Hide view

Display a summary

Display contents of "No results found"

Display "Access Denied"

Query aggregation

AJAX

Summary

Theming Essentials

Assumptions

What is a theme?

Exploring the Appearance interface

Drupal's core themes

Bartik

Seven

Stark

Classy

Theme states

Installed themes

Uninstalled themes

Default theme

Installing and uninstalling themes

Step one - installing a theme

Step two - uninstalling a theme

Theme settings

Toggling the display of page elements

Logo image settings

Favicon settings

Theme-specific settings

Using prebuilt themes

Folder structure and naming conventions

Managing configuration in Drupal 8

Reviewing the new info.yml file

Metadata

Libraries

Defining a library

Overriding libraries

Extending libraries

Attaching a library

Using Twig to attach a library

Using the preprocess functions to attach a library

Regions

Adding assets to CKEditor

The role of templates in Drupal

How templates work

Where to find templates

Creating a simple theme

Step one - creating a new folder

Step two - create an info file

Step three - create a libraries file

Step four - copy core templates

Step five - include a screenshot

Step six - installing our theme

Summary

Working with Twig

Assumptions

Configuring settings.local.php

Enabling local development services

Disabling render and page cache

Disabling test modules and themes

Enabling Twig debug

Twig fundamentals

Commenting variables

Setting variables

Printing variables

Dumping variables

Filters

Control structures

Functions

Template variables

The role of the theme file in Drupal

Preprocessors and hooks

Working with libraries

Adding assets

Creating a library reference

Including our library

Introducing web fonts

Creating our Jumbotron Block

Step one - Creating a custom block

Step two - Adding a new Jumbotron block

Step three - Placing the Jumbotron block

Page template

Node template

Block template

Field templates

Summary

Extending Drupal

Using Drush

Using Composer

Creating a new module

Understanding configuration and plugins

YAML

Plugins

Annotations

Anatomy of a plugin manager

Working with dependency injection

Services

Creating your own service

Services definition file

abstract

alias

calls

configurator

factory

parent

properties

public

scope

tags

Service implementation

Using your service

Permissions

Routing and menus

Basic routing

Display methods

_form

_entity_view

_entity_list

_entity_form

Handling arguments

Requirements checking

Route matching

_module_dependencies

_method

Parameter matching

Access tests

_permission

_role

_access

_entity_access

_csrf_token

Dynamic routes

Menu links

Local tasks

Local actions

Contextual links

Events and hooks

Using the EventDispatcher

Summary

Working with Forms and the Form API

Creating and managing forms

Creating a new form

Using FormState

Other form types

Exploring the Form API

New Form API types

Color

Details

Dropbutton

HTML tag

Language select

Link

More link

Pager

Path element

Table select

URL

Using AJAX

Summary

RESTful Services

Overview of REST

REST in Drupal 8

HTTP verbs

HAL JSON

Enabling core modules and customizing permissions

Exposing content using Views

Using RESTful endpoints

Displaying content

Unsafe methods and CSRF protection

Creating content

Updating content

Deleting content

Authenticating an application as a Drupal user

Core methods

Contrib methods

Creating REST resources

Using parameters

Using the current user

Summary

Multilingual Capabilities

Enabling core multilingual modules

Language

Interface Translation

Content Translation

Configuration Translation

Installing and configuring languages

Adding language detection

Account administration pages

URL

Session

User

Browser

Selected language

Content language detection

Working with language switching blocks

Translating content

Translating the Drupal admin UI

Using the multilingual API

PHP code

JavaScript

YML files

Annotations

Twig templates

Summary

Configuration Management

Configuration Management files

File format

Schema

Scalar values

Mapping

Sequence

Reusable types

Dynamic type references

Override system

Differences between configuration and state

Using the Config object

Configuration interface

Synchronize configuration

Exporting single configuration

Importing single configuration

Exporting whole site configuration

Importing whole site configuration

Configuration workflow with Drush

Configuration and multilingual sites

Configuration forms

Configuration translation

User interface translation

Summary

Site Migration

Enabling core modules to migrate content

Using Drupal 8's Migrate to handle migrations

Extending migrations with contributed modules

Building a migration process

Creating a migration source

Creating a migration processor

Using Drush to manage migrations

Summary

Debugging and Profiling

Enabling core debugging

Disabling caching

Enabling Twig debugging

Debugging cache performance

Working with Devel and Kint

Installing the Devel module

Printing variables

Printing backtrace

Using the Web Profiler

Installing the Web Profiler module

Request information

Processing timeline

Performance timing

Debugging queries

Debugging Views

Summary

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部