- 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.
推薦閱讀
- 現代企業應用設計指南
- 常用工具軟件案例教程
- Maya影視動畫高級模型制作全解析
- Excel 2013電子表格處理
- CorelDRAW服裝設計實用教程(第四版)
- Python Text Processing with NLTK 2.0 Cookbook: LITE
- 3ds Max 2014從入門到精通
- ASP.NET MVC 2 Cookbook
- SharePoint Designer Tutorial: Working with SharePoint Websites
- 中文版InDesign CC平面排版設計從入門到精通
- Audition CC音頻處理完全自學一本通
- Joomla! 1.5 Content Administration
- C# 2008 and 2005 Threaded Programming: Beginner's Guide
- Premiere視頻編輯案例教程:Premiere Pro 2020(微課版·第2版)
- PHPList 2 E/mail Campaign Manager