- Drupal 8 Theming with Twig
- Chaz Chumley
- 225字
- 2021-07-16 12:41:29
Chapter 3. Dissecting a Theme
Drupal 8 provides us, as developers and designers, with a unique opportunity to change the appearance of the output content. We have the ability to manage the configuration from the admin user interface as well as work with the actual templates and variables that output the HTML, CSS, and JavaScript. To get a better understanding, we will take a look at dissecting a theme, as we cover the following:
- Having a proper development environment is important when working with themes, so we will take a look at the steps involved in configuring our local environment.
- Next, we will compare the similarities and differences between core default themes and custom themes while looking at how configuration has changed in Drupal 8 with the introduction of the
info.yml
file. - Being able to breakdown how the metadata of the
info.yml
works in conjunction with general information, libraries, and regions will ensure that we have a better understanding of Drupal's theme configuration. - The role of templates, where to find core templates, and the process of overriding templates plays a major role in theming, so we will introduce ourselves to the Twig templating system.
- Finally, we will look at the role the theme file plays in manipulating template variables and how we can use it to our advantage when working with the content.
推薦閱讀
- 應對多突發事件的信息系統應用技術
- 綜合布線實訓教程(第3版)
- SignalR Realtime Application Cookbook
- CSS + DIV網頁樣式布局實戰從入門到精通
- 軟件開發視頻大講堂:ASP.NET從入門到精通(第4版)
- 深入集群:大型數據中心資源調度與管理
- 計算機網絡及項目實踐
- Administrating Solr
- ns-3網絡模擬器基礎及應用
- Adobe XD界面設計與原型制作教程(全彩)
- 信息主導論
- JavaScript+jQuery前端開發基礎教程(微課版)
- 網頁設計與前端開發實用教程(Dreamweaver+CSS+Photoshop+JavaScript+HTML)
- 新編信息檢索與利用(第四版)
- 信息安全保障