[Drupal] topic tutorial

Source: Internet
Author: User
Tags drupal

The topic development of drupal6 and drupal7 is quite different. This Guide contains these differences

The default topic of drupal7 is bartik and 6 is Garland.

How does Drupal's Theme system work?

This section mainly describes how Drupal themes work, the composition and settings of themes, and the. info file and template page. This section is the starting point for creating a custom topic.

Topic file Overview

A topic is a set of files that define the presentation layer. You can create multiple self-themes or change versions of one topic. Only the. info file is required for a topic. However, basically all themes and subthemes use other types of files. The following figure shows the file content required by a topic.

Drupal6

Drupal7

. Info file (required)

The topic must contain the. info file. The files to be used in the topic are defined here, such as css js block. The name used in Drupal is the name of this file. If this file is called drupal.info, drupal will display the name of this topic as Drupal

Template file (. TPL. php)

These files are written in HTML and PHP code. In some cases, they may be used to output other types of data, such as xml rss. Each. TPL. php file processes a page that can be defined to display data

[Drupal] topic tutorial

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.