- 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.
推薦閱讀
- 響應(yīng)式網(wǎng)頁開發(fā)基礎(chǔ)教程(jQuery+Bootstrap)
- HBase不睡覺書
- 云計算和大數(shù)據(jù)技術(shù)實(shí)戰(zhàn)
- Learn Wireshark
- 開源網(wǎng)絡(luò)模擬器ns-3:架構(gòu)與實(shí)踐
- Administrating Solr
- Laravel入門與實(shí)戰(zhàn)(第2版):構(gòu)建主流PHP應(yīng)用開發(fā)框架
- Axure RP 9 高保真原型設(shè)計實(shí)例教程
- 對話大數(shù)據(jù) 政府/工業(yè)/金融/醫(yī)療/人才行業(yè)創(chuàng)新與應(yīng)用案例分析
- 劍指Vue3:從入門到實(shí)踐
- 智慧網(wǎng)絡(luò)協(xié)同組織機(jī)理
- 軟件定義網(wǎng)絡(luò)核心原理與應(yīng)用實(shí)踐
- Wireshark網(wǎng)絡(luò)分析從入門到實(shí)踐
- 全棧性能測試修煉寶典:JMeter實(shí)戰(zhàn)(第2版)
- web應(yīng)用程序設(shè)計:ASP.NET/PHP/JSP技術(shù)教程