Contents
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
Editing and Customizing Your Blog Post
Adding More Fields to Your Blog Node
Installing a Theme Using Drush (Preferred Method)
Installing a Module Using Drush (Preferred Method)
Installing a Module from a URL
Chapter 3: Getting Started with HTML
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”
Chapter 5: A CSS Primer for Drupal
A Quick Look Back at the Limits of HTML
Styling Your Text with an External Style Sheet
Choosing Between Classes and IDs
Working with Conflicting Styles
Understanding the Cascade Order
Working with Commonly Used CSS Styles
Working with the CSS Box Model
Chapter 6: Adding CSS to Your Drupal Module
Chapter 7: A JavaScript Primer for Drupal
Getting Started with JavaScript
Adding Basic JavaScript to a Web Page
Working with JavaScript Programming Constructs
Using the jQuery Library with Events
Chapter 8: Adding JavaScript to Your Drupal Module
Adding JavaScript to Your Drupal Module
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 If, If Else, and Else If Statements
Chapter 10: Adding PHP-Generated Output to Your Drupal Module
Adding Custom PHP to the hello_world.module File
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
Chapter 12: Theming Your Site Part 1: Theme Functions and a Twig Primer..
In Depth with Twig: A Twig Primer
Chapter 13: Theming Your Site Part 2: Creating a Custom Theme and Subtheme
Overriding Existing Theme Functions
Exploring Other Options for Overriding Theme Functions
Chapter 14: Working with Forms and Creating Custom Forms
Creating a Node Programmatically Using a Custom Form
Showing a Custom Form in a Block
Chapter 15: Using Git to Manage Your Source Code
Creating an Account on Github and Downloading the Book’s Code
Using Git to Contribute to a Project
Navigating Your Github Repository
Checking Differences Between Branches and HEAD
Chapter 16: Advanced MySQL Primer
Using phpMyAdmin to Create a Database
Using the Command Line to Create a Database
Using phpMyAdmin to Create a Table
Using the Command Line to Create a Table
Creating and Editing Tables in Drupal
Creating the Table in the Drupal Module
Inserting Data in a Drupal Table
Updating and Deleting in Drupal
Introduction to Linux on a Mac
Connecting to Ubuntu from a Mac
Getting to Know Some Common Linux Commands
Navigating Among Directories and Managing Files
Adding Security with Permissions
Editing Files with Komodo Edit
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
Putting Up Your First Web Pages
Getting a URL for Your New Drupal Site
Appendix A: Other Ways to Install Drupal
Installing Drupal with MAMP on a Mac
Installing Drupal with XAMPP on a Windows Machine