Cargando…

Modernizing Drupal 10 theme development build fast, responsive Drupal websites with custom theme design to deliver a rich user experience /

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 gra...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Lusso, Luca (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham : Packt Publishing, Limited, 2023.
Edición:1st edition.
Temas:
Acceso en línea:Texto completo (Requiere registro previo con correo institucional)

MARC

LEADER 00000cam a22000007a 4500
001 OR_on1396062246
003 OCoLC
005 20231017213018.0
006 m o d
007 cr cnu||||||||
008 230902s2023 enk o 000 0 eng d
040 |a EBLCP  |b eng  |c EBLCP  |d YDX  |d ORMDA  |d EBLCP 
019 |a 1395537600 
020 |a 9781803249025 
020 |a 1803249021 
035 |a (OCoLC)1396062246  |z (OCoLC)1395537600 
037 |a 9781803238098  |b O'Reilly Media 
050 4 |a TK5105.8885.D78 
082 0 4 |a 006.76  |2 23/eng/20230906 
049 |a UAMI 
100 1 |a Lusso, Luca,  |e author. 
245 1 0 |a Modernizing Drupal 10 theme development  |h [electronic resource] :  |b build fast, responsive Drupal websites with custom theme design to deliver a rich user experience /  |c Luca Lusso. 
250 |a 1st edition. 
260 |a Birmingham :  |b Packt Publishing, Limited,  |c 2023. 
300 |a 1 online resource (360 p.) 
500 |a Description based upon print version of record. 
505 0 |a Cover -- Title Page -- Copyright and Credits -- Dedication -- Contributors -- Table of Contents -- Preface -- Part 1 -- Styling Drupal -- Chapter 1: Setting up a Local Environment -- Technical requirements -- Git -- Docker -- DDEV -- Visual Studio Code -- Installing the demo site -- Cloning and building -- Composer -- Configuration management -- Drush -- Default Content -- Yarn -- Exploring the demo site -- Fields -- Paragraph types -- Content types -- Vocabulary -- Blocks -- Views -- Menus -- Disabling production optimization -- Summary -- Chapter 2: Setting a New Theme and Build Process 
505 8 |a Where to start -- Core -- Contributed open source themes -- Commercial -- Custom -- Using a starterkit -- Keeping things updated -- Clearing the cache -- Which tools to use -- Tailwind CSS -- PostCSS -- webpack -- Browsersync -- BackstopJS -- Ensuring coding standards -- Stylelint -- ESLint -- PHPCS -- Setting up a build process -- Summary -- Chapter 3: How Drupal Renders an HTML Page -- What is a template? -- WebProfiler -- Twig -- Custom modules -- What is a render array? -- The dump() function -- Cache -- Controllers and blocks -- Regions -- Controller actions -- Blocks 
505 8 |a How to inject CSS and JavaScript into a template -- Libraries -- Attaching the library to a render array -- Custom CSS -- Custom JavaScript -- Alternate ways to render a controller action output -- Summary -- Chapter 4: Mapping the Design to Drupal Components -- What is a design system? -- Design tokens -- Atomic design -- Storybook -- Splitting mockups into components -- The home page -- The trips page -- The Trip page -- The level page -- The Search page -- The login page -- The Contact Us page -- Forecast page -- Mapping components to Drupal structures -- Menu -- MenuItem -- Block and Region 
505 8 |a Social -- MenuBlock -- Footer -- Picture and PictureWithCaption -- Slide, Slider, Grid, and Card -- Term and Details -- Body -- Map -- Table -- Trip -- Quote -- Weather and Forecast -- Banner -- Level -- Search result -- User Login -- Summary -- Chapter 5: Styling the Header and the Footer -- Regions and blocks -- Passing PHP variables by reference -- Retrieving the currently active theme -- Rendering an array for (very) simple markup -- Twig's autoescape feature -- How to override a template -- Defining theme regions -- Custom page.html.twig -- Overriding custom templates -- Including templates 
505 8 |a Finding templates -- Template suggestions -- Providing a new suggestion -- Blocks -- Styling menus -- Template preprocess -- Xdebug -- Summary -- Chapter 6: Styling the Content -- Entity, fields, bundles, and display modes -- Bundles -- Display modes -- Media and image styles -- Image styles -- Taxonomy terms -- How to structure content -- Using fields -- Using paragraphs -- Defining a new field formatter -- Plugins -- Customizing the WYSIWYG editor -- Text formats -- Alternative ways to manage content -- Summary -- Chapter 7: Styling Forms -- Understanding forms -- Render elements 
500 |a Theme wrappers 
520 |a 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 book. 
590 |a O'Reilly  |b O'Reilly Online Learning: Academic/Public Library Edition 
630 0 0 |a Drupal (Computer file) 
650 0 |a Web sites  |x Authoring programs. 
650 0 |a Web site development. 
650 0 |a Open source software. 
655 0 |a Electronic books. 
776 0 8 |i Print version:  |a Lusso, Luca  |t Modernizing Drupal 10 Theme Development  |d Birmingham : Packt Publishing, Limited,c2023 
856 4 0 |u https://learning.oreilly.com/library/view/~/9781803238098/?ar  |z Texto completo (Requiere registro previo con correo institucional) 
938 |a ProQuest Ebook Central  |b EBLB  |n EBL30723522 
938 |a YBP Library Services  |b YANK  |n 305674588 
994 |a 92  |b IZTAP