- 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.
推薦閱讀
- EJB 3.0 Database Persistence with Oracle Fusion Middleware 11g: LITE
- Photoshop CC摳圖+修圖+調色+合成+特效標準培訓教程(全視頻微課版)
- 從零開始:Flash CS6中文版基礎培訓教程
- Google Web Toolkit 2 Application Development Cookbook
- AutoCAD 2014電氣設計從入門到精通
- SolidWorks2014基礎實例教程
- 中文版Illustrator CC 2018基礎培訓教程
- Android從入門到精通
- After Effects影視特效立體化教程:After Effects 2021(微課版)
- UG NX 9中文版從入門到精通
- 中文版After Effects 2022基礎教程
- 7小時精通剪映:短視頻剪輯/調色/特效/字幕(手機版+電腦版)
- iPad Procreate風格繪畫之美
- 中文版Flash CC動畫制作實用教程
- 早該這樣學!Photoshop比你想的簡單