`
firecloudhawk
  • 浏览: 17126 次
  • 来自: ...
最近访客 更多访客>>
社区版块
存档分类
最新评论

Drupal Theme

阅读更多
Drupal Theme 自定义开发

1. 在sites/all/themes/下建立你自己的theme目录。如果你的theme叫abc,
最后的目录就像这样sites/all/themes/abc。该theme所学要的模板文件,图片,css文件,等等,都放在该目录下。

2. 自定义theme文件讲解:

page.tpl.php:

这个是主模板文件,也就是模板的入口。主模板文件一般定义了html页面的布局。主模板只负责页面的框架,也就是整体布局,并不定义具体某一块内容如何显示。具体要显示某一种内容时,主模板依靠其他模板来显示。比如说显示Node,主模板依靠node.tpl.php来显示。


node.tpl.php:
Node节点的模板,这个模板定义了node的内容应该被如何显示。在这个模板里可以使用的变量包括 $title, $content, $terms。

block.tpl.php:
block的模板,定义如何显示block。

box.tpl.php:
这个模板定义了如何显示simple box。它包含的变量有:$title, $content, $region

comment.tpl.php:
这个模板定义了如何显示comments。

分享到:
评论

相关推荐

    drupal theme

    Drupal 主题(Theme)是 Drupal 系统中的一个重要组成部分,它决定了网站的外观和布局。"drupal theme" 指的就是专门为 Drupal 系统设计的一系列 HTML、CSS、JavaScript 文件以及图像和其他资源,它们组合起来定义了...

    drupal theme 学习笔记

    Drupal 是一个强大的开源内容管理系统,其主题开发是 Drupal 自定义化的重要组成部分。在 Drupal 中,主题不仅决定了网站的外观,还影响着用户体验和网站的功能布局。本篇文章将深入探讨 Drupal 主题开发,尤其是...

    Drupal6 Themes

    是一个专业的drupal theme 设计丛书

    Drupal7 theme samoca

    - **Theme Functions** 和 **Theme Variables**: Drupal7主题通常使用预定义的函数(如theme_image() 或 theme_links())和变量来输出内容。了解这些函数和如何传递变量是必要的。 通过分析和调试Samoca主题的源...

    drupal 6.12

    If the default Drupal theme is not displaying properly and links on the page result in "Page Not Found" errors, try manually setting the $base_url variable in the settings....

    Drupal filmforge_theme

    "filmforge_theme" 是 Drupal 的一个特定主题,它为电影或视频相关的网站提供了设计模板。在这个压缩包文件中,包含的是 Drupal 3.0 版本的相关资源。 Drupal 主题是决定网站外观和用户体验的关键元素。filmforge_...

    eleven:Drupal 8管理主题,达到11

    十一:Drupal 8管理主题 ...drupal theme:install eleven drupal config:override system.theme admin eleven 作曲家 composer config repositories.eleven vcs https://github.com/thememachine/eleven composer req

    Drupal5_Theme.pdf

    Drupal5_Theme.pdf 很经典的教程..07年12月出的.

    Drupal 5 Themes.pdf

    This book sets out to explain the workings of the Drupal theme framework, and how you can use it effectively. The goal of this book is to explain basic principles, demonstrate practical solutions to ...

    Theme_Guide_Drupal

    Theme_Guide_Drupal模板电子书

    drupal常用hook、theme_hook、模板命名等小结

    drupal常用hook、theme_hook、模板命名等小结

    Drupal6PanelsCookbook.pdf 英文原版

    Drupal 6 Panels Cookbook

    drupal 6.28 的包

    5. **主题系统**:Drupal 6的Theme Engine允许开发者创建自定义的网站外观,通过模板和CSS实现设计自由度。 6. **搜索优化**:内置的搜索功能和对SEO(搜索引擎优化)的支持,帮助网站提高在搜索引擎中的排名。 7....

    Drupal中hook_theme函数用法

    `hook_theme()` 函数是模块(Module)或主题(Theme)中定义的一个函数,它的名称遵循 Drupal 钩子命名规则:`hook` 前缀加上 `_theme` 后缀。例如,在模块 `modulename` 中,你需要定义一个名为 `modulename_theme...

    drupal7的一个主题

    标签“drupal7 theme business”进一步强调了这个主题是针对商业用途设计的。这意味着它可能包含了适合商业网站的特定功能,如产品展示、购物车、联系表单、客户评价等。此外,商业主题通常会注重专业性和品牌形象的...

    Drupal 8 Module Development 2nd Edition

    Learn about the theme system and render arrays About the Author Daniel Sipos is a senior web developer specializing in Drupal. He's been working with Drupal sites since version 6 and started out like...

    cu-theme:适用于Drupal网站的基于Bootstrap的自定义子主题

    **cu-theme: Drupal网站的Bootstrap自定义子主题详解** 在Drupal内容管理系统中,主题是决定网站外观和用户体验的关键部分。`cu-theme` 是一个专为Drupal设计的自定义子主题,它基于流行的前端框架Bootstrap构建,...

    Drupal资料集——快速入门

    理解Theme Hooks、Twig模板语言以及响应式设计的概念对于个性化你的网站至关重要。 此外,Drupal的节点系统是存储内容的地方。理解节点类型、字段、以及如何创建和管理它们是内容管理的基础。你还需要学习如何利用...

    Drupal.8.Development.Beginners.Guide.2nd.Edition.epub

    A hands-on, example-driven guide to developing Drupal websites that covers everything from site building, theme development, creating custom modules, as well as the development environment Who This ...

Global site tag (gtag.js) - Google Analytics