封面
版权信息
Credits
About the Author
Acknowledgments
About the Reviewer
www.PacktPub.com
Preface
Chapter 1. Setting Up Our Development Environment
Installing an AMP (Apache MySQL PHP) stack
A quick tour of MAMP PRO
Installing Drupal 8
Reviewing the new admin interface
Using the project files
Summary
Chapter 2. Theme Administration
What is a theme?
Exploring the Appearance interface
Drupal's core themes
Theme states
Installing and uninstalling themes
Theme settings
Theme-specific settings
Using prebuilt themes
Manually installing a theme
Cleaning up our themes folder
Managing content with blocks
Managing custom blocks
Summary
Chapter 3. Dissecting a Theme
Setting up a local development environment
Default themes versus custom themes
Folder structure and naming conventions
Managing configuration in Drupal 8
Reviewing the new info.yml file
The role of templates in Drupal
Creating our first basic theme
Introducing Twig
Template variables
The role of the theme file in Drupal
Summary
Chapter 4. Getting Started – Creating Themes
Starter themes
Creating a Bootstrap starter
Creating a Jumbotron
Rethinking our layout
Using Twig templates
Subthemes
Touring Classy
Summary
Chapter 5. Prepping Our Project
Walking through the design mockup
Restoring our database snapshot
Creating a custom theme
Summary
Chapter 6. Theming Our Homepage
Creating our HTML wrapper
Creating our homepage
Implementing our Header Top region
Implementing our Header region
Implementing our Headline Region
Implementing our Before Content region
Implementing the footer
Summary
Chapter 7. Theming Our Interior Page
Reviewing the About Us mockup
Creating our interior page template
Adding our Global Header
Implementing our page title
Implementing our main page structure
Implementing our Team members section
Adding our global footer
Fixing JavaScript errors
Summary
Chapter 8. Theming Our Blog Listing Page
Reviewing the Blog Listing mockup
Creating our blog listing
Creating a Post Listing view
Managing our Post Listing block
Implementing our Node template
Creating a theme file
Creating a Categories block
Managing our Categories block
Implementing responsive sidebars
Theming a Block template
Drupal Views and Twig templates
Managing popular versus recent content
Adding the About Us block
Summary
Chapter 9. Theming Our Blog Detail Page
Reviewing the Blog detail mockup
Previewing our Blog detail page
Creating a Post Full template
Working with comments
Implementing social sharing capabilities
Summary
Chapter 10. Theming Our Contact Page
Reviewing the contact page mockup
Introducing contact forms
Contact page layout
Adding a Callout block
Integrating Google Maps into our contact page
Summary
Chapter 11. Theming Our Search Results
Reviewing the Search Results mockup
Looking at default Search results
Introducing core search
Working with Search Results templates
Search alternatives
Summary
Chapter 12. Tips Tricks and Where to Go from Here
Working with Local Tasks
Reusing Twig templates
Where do we go from here?
Summary
Index
更新时间:2021-07-16 12:41:50