Modernizing Drupal 10 Theme Development: Build fast, responsive Drupal websites with custom theme design to deliver a rich user experience
暫譯: 現代化 Drupal 10 主題開發:打造快速、響應式的 Drupal 網站,透過自訂主題設計提供豐富的使用者體驗
Lusso, Luca
- 出版商: Packt Publishing
- 出版日期: 2023-08-31
- 售價: $1,710
- 貴賓價: 9.5 折 $1,625
- 語言: 英文
- 頁數: 360
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1803238097
- ISBN-13: 9781803238098
-
相關分類:
Drupal、使用者經驗 UX
海外代購書籍(需單獨結帳)
商品描述
A comprehensive guide to creating Drupal themes from scratch, from design to fully styled websites with custom Twig templates and headless architecture
Key Features:
- Explore real-world examples with proven methodologies to gain a deeper insight into the Drupal theme layer
- Learn how to translate a graphic design into a maintainable and robust Drupal theme
- Improve performance and accessibility with a decoupled frontend to consume data exposed by Drupal's APIs
- Purchase of the print or Kindle book includes a free PDF eBook
Book Description:
Working with themes in Drupal can be challenging, given the number of layers and APIs involved. Modernizing Drupal 10 Theme Development helps you explore the new Drupal 10's theme layer in depth.
With a fully implemented Drupal website on the one hand and a set of Storybook components on the other, you'll begin by learning to create a theme from scratch to match the desired final layout. Once you've set up a local environment, you'll get familiarized with design systems and learn how to map them to the structures of a Drupal website. Next, you'll bootstrap your new theme and optimize Drupal's productivity using tools such as webpack, Tailwind CSS, and Browsersync. As you advance, you'll delve into all the theme layers in a step-by-step way, starting from how Drupal builds an HTML page to where the template files are and how to add custom CSS and JavaScript. You'll also discover how to leverage all the Drupal APIs to implement robust and maintainable themes without reinventing the wheel, but by following best practices and methodologies. Toward the end, you'll find out how to build a fully decoupled website using json: api and Next.js.
By the end of this book, you'll be able to confidently build custom Drupal themes to deliver state-of-the-art websites and keep ahead of the competition in the modern frontend world.
What You Will Learn:
- Map design systems made by Storybook components to Drupal structures
- Understand and use render arrays and Twig templates
- Get familiarized with the new Single Directory Component feature introduced in Drupal 10.1
- Define, import, and use CSS and JavaScript libraries
- Discover how to style content created with fields and paragraphs
- Define, place, customize, and style blocks
- Explore advanced topics like extending Twig, making a theme configurable, and boosting performance and accessibility
- Find out how to build a decoupled website using json: api and Next.js
Who this book is for:
If you are a Drupal backend developer or frontend developer who wants to create Drupal themes that follow industry best practices and are fast and maintainable, this book is for you. Basic knowledge of HTML, CSS, and JavaScript and working knowledge of a CMS are needed to grasp the concepts present in this boo
商品描述(中文翻譯)
從設計到完整樣式化網站,使用自訂 Twig 模板和無頭架構,全面指南以從零開始創建 Drupal 主題
主要特點:
- 探索實際案例,運用經驗證的方法論,深入了解 Drupal 主題層
- 學習如何將圖形設計轉換為可維護且穩健的 Drupal 主題
- 透過解耦前端來改善性能和可及性,以消耗 Drupal 的 API 所暴露的數據
- 購買印刷版或 Kindle 書籍可獲得免費 PDF 電子書
書籍描述:
在 Drupal 中處理主題可能具有挑戰性,因為涉及多層和 API。現代化的 Drupal 10 主題開發幫助您深入探索新的 Drupal 10 主題層。
您將一方面擁有一個完全實現的 Drupal 網站,另一方面擁有一組 Storybook 元件,您將開始學習如何從零開始創建一個主題,以匹配所需的最終佈局。一旦設置了本地環境,您將熟悉設計系統並學習如何將其映射到 Drupal 網站的結構。接下來,您將啟動新的主題並使用 webpack、Tailwind CSS 和 Browsersync 等工具優化 Drupal 的生產力。隨著進展,您將逐步深入所有主題層,從 Drupal 如何構建 HTML 頁面開始,了解模板文件的位置以及如何添加自訂 CSS 和 JavaScript。您還將發現如何利用所有 Drupal API 來實現穩健且可維護的主題,而不是重新發明輪子,而是遵循最佳實踐和方法論。在書的最後,您將學會如何使用 json: api 和 Next.js 構建一個完全解耦的網站。
到本書結束時,您將能夠自信地構建自訂的 Drupal 主題,以提供最先進的網站,並在現代前端世界中保持競爭優勢。
您將學到什麼:
- 將由 Storybook 元件製作的設計系統映射到 Drupal 結構
- 理解並使用渲染數組和 Twig 模板
- 熟悉 Drupal 10.1 中引入的新單目錄元件功能
- 定義、導入和使用 CSS 和 JavaScript 庫
- 發現如何為使用欄位和段落創建的內容進行樣式設計
- 定義、放置、自訂和樣式化區塊
- 探索擴展 Twig、使主題可配置以及提升性能和可及性等進階主題
- 了解如何使用 json: api 和 Next.js 構建解耦網站
本書適合誰:
如果您是希望創建遵循行業最佳實踐且快速可維護的 Drupal 主題的 Drupal 後端開發人員或前端開發人員,本書適合您。需要具備 HTML、CSS 和 JavaScript 的基本知識,以及對 CMS 的工作知識,以理解本書中的概念。