Contents

About the Author

About the Technical Reviewer

Acknowledgments

Introduction

image Chapter 1: Installing Drupal

Installing Acquia Dev Desktop

Installing Drupal 8

Configuring Drupal 8

Summary

image Chapter 2: Site Building: Building Drupal Sites Without Programming

Setting a New Site Title and Logo

Adding More Users to Your New Drupal site

Assigning Roles and Permissions to Site Users

Creating a Blog

Editing and Customizing Your Blog Post

Adding More Fields to Your Blog Node

Working with Blocks

Working with Views

Changing Your Site’s Theme

Installing a Theme Using Drush (Preferred Method)

Installing a Theme from a URL

Installing New Add-on Modules

Installing a Module Using Drush (Preferred Method)

Installing a Module from a URL

Summary

image Chapter 3: Getting Started with HTML

Creating Your First Web Page

Adding Comments to Your HTML

Working with Images

Creating Lists

Creating Tables

Adding Anchors

Creating Forms

Text Fields

Password Fields

Radio Buttons

Drop-downs

Text Areas

“Submit” Buttons

All Together Now

Using Layout Elements

Summary

image Chapter 4: Creating a Basic Drupal Module with HTML Output

Working with the Drupal Docroot Directory

Creating a Basic Drupal Module

Looking at the Model, View, Controller Design Pattern

Showcasing Different HTML Elements Within the Drupal Module

Renaming a Module—and How to Create a Module Not Named “hello_world”

Summary

image Chapter 5: A CSS Primer for Drupal

A Quick Look Back at the Limits of HTML

Styling Your Text with an External Style Sheet

Using <div> and <span> Tags

Commenting Your CSS

Creating Additional Styles

Choosing Between Classes and IDs

Working with Conflicting Styles

Using Internal Style Sheets

Using Inline Styles

Understanding the Cascade Order

Working with Commonly Used CSS Styles

Text Styles

Fonts and Font Sizes

Links

Tables

Working with the CSS Box Model

Summary

image Chapter 6: Adding CSS to Your Drupal Module

Using CSS Within Your

Summary

image Chapter 7: A JavaScript Primer for Drupal

Getting Started with JavaScript

Adding Basic JavaScript to a Web Page

Installing Firebug

Using Firebug

Modifying JavaScript Code

Working with JavaScript Programming Constructs

Variables

Arrays

Objects

Booleans

Creating JavaScript Events

Using the jQuery Library

Using the jQuery Library with Events

Summary

image Chapter 8: Adding JavaScript to Your Drupal Module

Adding JavaScript to Your Drupal Module

Summary

image Chapter 9: A PHP Primer for Drupal

Verifying Your Installation of PHP

Serving Up a Hello World Web Page with PHP

Working with Some Basic PHP Code

Working with PHP Looping Structures

Using the foreach Loop

Using the while Loop

Printing to the Screen

Using If, If Else, and Else If Statements

Switch Statements

Working with Strings

strlen

strpos and stripos

Using Functions

Functions Operating on Arrays

Summary

image Chapter 10: Adding PHP-Generated Output to Your Drupal Module

Adding Custom PHP to the hello_world.module File

Summary

image Chapter 11: Creating a Drupal Block Programmatically and Basic MySQL Usage

Creating Your First Block Programmatically

Learning about the Drupal Database and Using a MySQL Query in a Custom Block

Using a Query to Display Data in a Custom Programmatically Created Block

MySQL Primer

Wildcard Character in Queries

Summary

image Chapter 12: Theming Your Site Part 1: Theme Functions and a Twig Primer..

Theming Output from a Module

Using a Theme Function

In Depth with Twig: A Twig Primer

Twig Variables

Summary

image Chapter 13: Theming Your Site Part 2: Creating a Custom Theme and Subtheme

Creating a Subtheme

Creating a New Base Theme

Overriding Existing Theme Functions

Exploring Other Options for Overriding Theme Functions

Summary

image Chapter 14: Working with Forms and Creating Custom Forms

Using the Form API

Creating a Node Programmatically Using a Custom Form

Showing a Custom Form in a Block

Summary

image Chapter 15: Using Git to Manage Your Source Code

Introducing Git

Installing Git

Installing Git on a Mac

Installing Git for Windows

Installing Git with Linux

Creating an Account on Github and Downloading the Book’s Code

Using Git to Contribute to a Project

Creating a Github Repository

Navigating Your Github Repository

More Great Git Commands

Checking Differences Between Branches and HEAD

Using a GUI for Git

Summary

image Chapter 16: Advanced MySQL Primer

Creating a New Database

Using phpMyAdmin to Create a Database

Using the Command Line to Create a Database

Creating Tables

Using phpMyAdmin to Create a Table

Using the Command Line to Create a Table

Inserting Data into a Table

Updating Tables

Deleting Data

Creating and Editing Tables in Drupal

Creating the Table in the Drupal Module

Inserting Data in a Drupal Table

Updating and Deleting in Drupal

Summary

image Chapter 17: Linux

Introduction to Linux on a Mac

Connecting to Ubuntu

Connecting to Ubuntu from a Mac

Getting to Know Some Common Linux Commands

Navigating Among Directories and Managing Files

Installing LAMP

Adding Security with Permissions

Searching for Specific Files

Creating Shell Scripts

Editing Files on a Linux Box

Editing Files with Komodo Edit

Summary

image Chapter 18: Publishing Your Site to a Production Linux Box

Setting Up the Linux Box in the Cloud

Connecting to a New Linux Box Via SSH

Setting Up the LAMP Stack on an Ubuntu Linux Box

Installing git for Version Controlling Your Code Base

Installing Drush

Putting Up Your First Web Pages

Installing Drupal

Getting a URL for Your New Drupal Site

Summary

image Appendix A: Other Ways to Install Drupal

Installing Drupal with MAMP on a Mac

Installing Drupal with XAMPP on a Windows Machine

Summary

image Appendix B: Basic Linux Commands

Index

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.147.215