- Drupal 9 Module Development
- Daniel Sipos Antonio De Marco
- 188字
- 2021-06-11 18:36:04
Chapter 4: Theming
The most obvious part of Drupal's theming system is the Appearance admin page found at admin/appearance, which lists all the themes installed on your website:
Figure 4.1: Appearance admin page
When you choose a theme from the Appearance page, you are applying a specific graphic design to your website's data and functionality. However, the applied theme is in reality only a small part of the entire theming layer.
This book focuses mostly on building modules that encapsulate chunks of functionality. However, since we're ultimately building a web application, everything output by our functionality will need to be marked up with HTML. In Drupal, this process of wrapping data in HTML and CSS is called theming.
In this chapter, we will discuss how our module integrates with the theme layer. We will talk about the architecture of the system, theme templates, hooks, render arrays, and others. Then, we will provide some practical examples.
The major topics we will cover in the chapter are as follows:
- Theme hooks, templates, and suggestions
- Render arrays and layouts
- Assets and libraries
- Theming our Hello World module using the lessons learned
- E-mail營銷:網(wǎng)商成功之道
- 榨干百度谷歌
- 人人都能做生鮮
- 互聯(lián)網(wǎng)+:傳統(tǒng)行業(yè)跨界融合與轉(zhuǎn)型升級新模式
- Hyperledger Fabric菜鳥進階攻略
- 電商那些事兒
- 大變革:互聯(lián)網(wǎng)重構(gòu)商業(yè)模式
- 網(wǎng)絡(luò)零售
- 電子商務(wù)
- 電子商務(wù)實驗指導(dǎo)
- 互聯(lián)網(wǎng)+流通:F2R助力傳統(tǒng)產(chǎn)業(yè)創(chuàng)新與轉(zhuǎn)型
- 教訓:互聯(lián)網(wǎng)創(chuàng)業(yè)必須避免的八大誤區(qū)
- 移動互聯(lián)網(wǎng)O2O社群微營銷:移動互聯(lián)網(wǎng)銷售業(yè)績提升手冊
- 互聯(lián)網(wǎng)+ 電商平臺設(shè)計與運營
- 中美貿(mào)易摩擦治理研究