Drupal 10+ Theming

Sub-title: 
How to convert an HTML template to a Drupal Theme
Publisher: 
Self published
Publication date: 
2024-9
Page count: 
581
ISBN-13: 
N/A

Master the art of Drupal theming
In this book, you’ll be guided through the detailed and practical steps needed to transform an HTML template into a fully functional Drupal theme. From setting up a development environment to building a complete and themed Drupal site, all aspects of the theming process are covered.

Starting with an HTML template and a vanilla Drupal 10 site, we go step-by-step through the process of creating a Drupal theme from scratch. Most theming courses and tutorials theme a basic site, in this book we’ll be theming a fairly complex business site. The site is based on Drupal 10.1 but the material and information contained within is applicable to any Drupal 10.x or Drupal 11 site.

A GitHub repo accompanies this book and provides a chapter-by-chapter file set, database "snapshot" and screenshots.

What you will learn

  • Learn how to set up a Drupal local development environment using DDEV
  • Understand the essentials of Drupal theming, including the structure of themes, theme components, and the role of Twig templates
  • Learn how to dissect and analyze an HTML template and identify the Drupal components (Content types, Blocks, Views, Image styles etc.) needed to build and theme each section
  • Learn how to incorporate HTML template CSS, JavaScript and other asset files into a Drupal theme
  • Become proficient at theming site Headers / Footers, Hero banners, Navigation menus, Image sliders and Drupal components such as Paragraphs, Blocks, Content nodes, Views and Webforms
  • Learn how to override Twig templates, write custom markup, write custom CSS and preprocess functions
  • Learn about debug commands and how to use them during theme development

Who this book is for

This book is mostly intended for website developers involved with Drupal but also for anyone interested in Drupal theming. It assumes knowledge of HTML, CSS and basic familiarity with the Twig templating language. To get the most out of this book, prior experience with Drupal and basic Drupal site building is helpful. To aid the site building aspects, a comprehensive set of screenshots and summaries are provided for all Drupal component creation and configuration.

Drupal at your Fingertips

Sub-title: 
Modern Drupal developer's quick code reference for version 10
Authors: 

Selwyn Polit
with contributions from the Drupal community

Publisher: 
self
Publication date: 
2024-01
Page count: 
100
ISBN-13: 
na

Drupal at Your Fingertips is a free living Modern Drupal reference book created to help developers quickly find code they need. It is a community effort including other developers' input. Please share it with your network.

Some of the chapters include:

  • Actions - Use the Drupal core actions module to control Drupal.
  • Batch and Queue - Digging into the Batch API and Queue subsystem to take on large tasks.
  • Blocks - Creating custom blocks, block types, block plugins, block forms, block visibility, block access, block regions, block templates, and block preprocess functions.
  • Caching - Understanding the cache system, cache tags, cache contexts, cache max-age, cache bins, cache backends, cache invalidation, cache rebuild, cache clear, cache warm, and cache performance.
  • Composer - Using Composer to manage dependencies and patches.
  • Configuration - Managing configuration files, configuration entities, configuration forms, configuration schema, configuration split, configuration import, configuration export, and configuration override.
  • Cron - Using hook_cron, sample crontab files, how to stop cron.
  • Debugging - Using debugging tools, debugging methods, debugging variables, debugging queries, debugging routes, debugging hooks, debugging events, debugging tests, and debugging performance.
  • Drush - Installing and using Drush, generating code, scaffolding modules, creating entities, updating database, debugging site, and running tests.
  • Forms - Creating and altering forms, form elements, form validation, form submission, form redirection, form states, form storage, form AJAX, form theming, and form API.
  • Hooks - Understanding the hook system, implementing hooks, altering hooks, invoking hooks, creating custom hooks, and debugging hooks.
  • Menus - Creating and altering menus, menu links, menu trees, menu blocks, menu templates, menu preprocess functions, and menu API.
  • Modules - Creating and altering modules, module structure, module dependencies, module installation, module uninstallation, module updates, module hooks, module events, and module testing.
  • Routes and controllers - Creating and altering routes, route parameters, route requirements, route options, route controllers, route access, route responses, and route API.
  • Services and Dependency injection - Understanding the service container, creating and altering services, service definitions, service arguments, service tags, service injection, service discovery, and service API.
  • Testing - Writing and running PHPUnit and Drupal Test Traits tests.
  • Twig - Using and extending Twig, Twig syntax, Twig filters, Twig functions, Twig variables, Twig templates, Twig debugging, Twig caching, and Twig API.
  • Update - Upgrading and patching Drupal and contrib modules.

Note. you can buy a pdf version from leanpub.

Expert in Drupal 9 Front-End Development

Authors: 

Fran Gil

Publisher: 
Forcontu
Publication date: 
2022-01
Page count: 
733
ISBN-13: 
9788494713156

It is NOT sold by Amazon. Available only at www.forcontu.com


Front-End development in Drupal 9 encompasses all interface-related technologies that run in the web browser. We can group these technologies into three languages, HTML, CSS and JavaScript. Although these technologies are used as a base, we will see that there are other more advanced solutions that facilitate Front-End programming. For example, we will use SASS for CSS generation and JavaScript libraries such as jQuery or VueJS.

Book in PDF

  • PDF without DRM
  • You can print it out
  • You can copy text
  • Individual and personal license


Contents

  • Unit 1. Development environment
  • Unit 2. Installation and configuration of themes
  • Unit 3. Creating themes
  • Unit 4. Twig Templates in Drupal
  • Unit 5.html5
  • Unit 6. CSS3
  • Unit 7. Templates and styles in Drupal
  • Unit 8. Responsive design
  • Unit 9. Sass
  • Unit 10. Introduction to PHP
  • Unit 11.php programming in themes
  • Unit 12. Introduction to Javascript
  • Unit 13. jQuery
  • Unit 14. Bootstrap
  • Unit 15. Foundation
  • Unit 16. Decoupled Drupal I: RESTful and JSON:API
  • Unit 17. Decoupled Drupal II: Javascript Frameworks
  • Unit 18. Decoupled Drupal III: Integration with Vue.js

Expert in Drupal 9 Back-End Development

Authors: 

Fran Gil

Publisher: 
Forcontu
Publication date: 
2022-01
Page count: 
1325
ISBN-13: 
9788494713149

It is NOT sold by Amazon. Available only at www.forcontu.com


Back-End development in Drupal 9 refers to the programming of modules and components that allow extending the functionality of the system. It is mainly object-oriented PHP programming, although we will also see other technologies needed during the development of a web project.

Book in PDF

  • PDF without DRM
  • You can print it out
  • You can copy text
  • Individual and personal license


Contents

  • Unit 1. Development environment
  • Unit 2. Introduction to the Linux console
  • Unit 3. Introduction to version control with Git
  • Unit 4. PHP I: Introduction to PHP
  • Unit 5. PHP II: PHP API Functions
  • Unit 6. PHP III: Object Oriented Programming (OOP)
  • Unit 7. PHP IV: Design Patterns
  • Unit 8. MySQL I: Introduction to SQL and MySQL
  • Unit 9. MySQL II: Database management tools
  • Unit 10. Symfony I: Introduction to Symfony
  • Unit 11. Symfony II: Symfony Components
  • Unit 12. Installing Drupal 9
  • Unit 13. Drupal 9 architecture
  • Unit 14. Drupal development best practices
  • Unit 15. Drush
  • Unit 16. Introduction to module development
  • Unit 17. Routing and menus
  • Unit 18. Introduction to the Configuration API
  • Unit 19. Databases I: Creation of tables
  • Unit 20. Databases II: Select, insert, update and delete queries
  • Unit 21. Forms I: Creating forms
  • Unit 22. Forms II: Form Elements
  • Unit 23. Forms III: Extension of Forms
  • Unit 24. Plugins I: Introduction to plugins and blocks
  • Unit 25. Users and permissions
  • Unit 26. Theming I: Creating themes and templates
  • Unit 27. Theming II: Theming in modules
  • Unit 28. Plugins II: Plugin types and services
  • Unit 29. Entities I: Configuration entities
  • Unit 30. Entities II: Content entities
  • Unit 31. Text formats and filters
  • Unit 32. Files and images
  • Unit 33. Search system
  • Unit 34. Module translation
  • Unit 35. Forms IV: jQuery and Ajax
  • Unit 36. Programming updates
  • Unit 37. Programming views
  • Unit 38. Events
  • Unit 39. Sending emails
  • Unit 40. Cache API
  • Unit 41. Programming cron tasks and queues
  • Unit 42. Automatic tests
  • Unit 43. Programming custom Drush commands
  • Unit 44. Programming installation profiles
  • Unit 45. Sharing in Community

Expert in Drupal 9 Site Building

Authors: 

Fran Gil

Publisher: 
Forcontu
Publication date: 
2022-01
Page count: 
1312
ISBN-13: 
9788494713132

It is NOT sold by Amazon. Available only at www.forcontu.com


Site Building is all that can be done through the user interface without programing. Drupal has a large number of contributed modules that allow us to extend Drupal’s functionality and build complex websites. We will look at what functionality is included in Drupal core and how that is extended through contributed modules.

Book in PDF

  • PDF without DRM
  • You can print it out
  • You can copy text
  • Individual and personal license


Contents

  • Unit 1. Introduction to Drupal 9
  • Unit 2. Installing Drupal 9
  • Unit 3. The Administration Area
  • Unit 4. Content management
  • Unit 5. Content types I: Introduction to content types and fields
  • Unit 6. Comment types
  • Unit 7. Menu management
  • Unit 8. Block management
  • Unit 9. Themes I: Installing and configuring themes
  • Unit 10. Extending functionality with contributed modules
  • Unit 11. Managing users, roles, and permissions
  • Unit 12. Taxonomy
  • Unit 13. Text formats and WYSIWYG editors
  • Unit 14. Content types II: Additional fields
  • Unit 15. Multimedia content
  • Unit 16. Content types III: Display of content
  • Unit 17. Searches
  • Unit 18. Languages, translation and multilingual sites I
  • Unit 19. Languages, translation and multilingual sites II
  • Unit 20. Views I: Creating and configuring views
  • Unit 21. Views II: Fields, filters and sorting
  • Unit 22. Views III: Advanced configuration
  • Unit 23. Themes II: Modification of themes
  • Unit 24. Other modules: Forums and Books
  • Unit 25. Adding and generating syndicated content (RSS)
  • Unit 26. Management, maintenance and updating of the website
  • Unit 27. Installing Drupal on a local server
  • Unit 28. Introduction to Configuration Management
  • Unit 29. Editing Contents with Paragraphs
  • Unit 30. Forms
  • Unit 31. Layouts I: Layout Builder
  • Unit 32. Layouts II: Panels
  • Unit 33. Layouts III: Display Suite
  • Unit 34. Multimedia II: Media
  • Unit 35. Views IV: Extension of views
  • Unit 36. Workflow and access control
  • Unit 37. Content types IV: Additional modules
  • Unit 38. Social tools
  • Unit 39. SEO positioning with Drupal
  • Unit 40. Geolocation
  • Unit 41. Extending menus
  • Unit 42. Distributions: Varbase

Drupal 9 Module Development, 3rd Edition

Sub-title: 
Explore modern development practices for building professional modules and themes for Drupal sites
Authors: 
Publisher: 
Packt Publishing
Publication date: 
2020-08
Page count: 
493
ISBN-13: 
9781800204621

Learn

Develop custom Drupal 9 modules using expert techniques
Master numerous Drupal 9 subsystems and APIs as you develop modules
Get to grips with modeling, storing, manipulating, and processing data for effective data management
Display data and content cleanly and securely using the Drupal 9 theme system
Test your business logic to prevent regression
Stay ahead of the curve and write PHP code by implementing best practices

About

Drupal is an open source content management system that empowers millions of independent developers and organizations with end-to-end website solutions. Updated to include the new functionalities introduced in Drupal 9, this third edition of the Drupal Module Development guide will help you to stay on top of code deprecation and the changing architecture of Drupal with each new release.

The book starts by introducing you to the Drupal 9 architecture and its subsystems before showing you how to create your first module with basic functionality. You’ll explore the Drupal logging and mailing systems, learn how to output data using the theme layer and work with menus and links programmatically. This Drupal guide will take you through different kinds of data storage before helping you to create custom entities and field types and leverage the Database API for lower-level database queries. You’ll also learn how to introduce JavaScript into your module, work with various file systems, and ensure that your code works on multilingual sites. Finally, you’ll work with Views, create automated tests, and write secure code.

By the end of the book, you’ll have learned how to develop custom modules that can provide solutions to complex business problems and, who knows, maybe you’ll even contribute to the Drupal community!

Features

  • Explore a plethora of Drupal 9 APIs and get the best out of them using PHP programming
  • Create modules for efficient data management, security, and much more in your Drupal sites
  • Discover best practices for transitioning from legacy Drupal 7 and Drupal 8 APIs to Drupal 9

Pages

Subscribe with RSS Subscribe to RSS - Advanced