- Learning Drupal 6 Module Development
- Matt Butcher
- 166字
- 2021-07-02 12:00:56
Chapter 4. Theming Modules
In the last chapter, we took a look at the Drupal theme system, and created our own theme. This chapter will begin where we left off, but with a twist—this time we will create a module with a default theme. To do this, we will develop a new module.
The Philosophy Quotes module that we will create in this chapter will use Drupal's theme system and a simple database query to theme the content of a custom content type.
Here are some of the items we will cover while working on this module:
- Creating a custom content type
- Performing simple database operations
- Registering a module's theme functions with the
hook_theme()
function - Adding theme hooks to a module
- Adding CSS stylesheets to a module's default theme
- Using theme CSS and template files to override default module theme functions
In the next chapter, we will continue with this module. There, we will augment our Philosophy Quotes module with some JavaScript.
推薦閱讀
- 中文版SketchUp 2022完全實(shí)戰(zhàn)技術(shù)手冊(cè)
- Moldflow模流分析與工程應(yīng)用
- SPSS 28.0統(tǒng)計(jì)分析從入門(mén)到精通(升級(jí)版)
- 輕松玩轉(zhuǎn)3D One AI
- UG NX 9中文版從入門(mén)到精通
- 無(wú)師自通AutoCAD 2014中文版機(jī)械設(shè)計(jì)
- Learning the Yahoo! User Interface library
- Photoshop CC入門(mén)與提高
- 計(jì)算機(jī)輔助翻譯基礎(chǔ)與實(shí)訓(xùn)
- Altium Designer 21實(shí)戰(zhàn)從入門(mén)到精通
- Quality Assurance for Dynamics AX-Based ERP Solutions
- Joomla! 1.5 Top Extensions Cookbook
- SQL Server 2005數(shù)據(jù)挖掘與商業(yè)智能完全解決方案
- Microsoft SharePoint 2010 End User Guide: Business Performance Enhancement
- phpBB: A User Guide