テーマ設定について

Events happening in the community are now at Drupal community events on www.drupal.org.
You are viewing a wiki page. You are welcome to join the group and then edit it. Be bold!
元記事URI About Theming
編集リンク N/A
ステータス 作業中
メッセージ

どなたでも参加可能です。
変更を行った場合は、Revision informationにLog messageを残してください。

ライセンス The Drupal handbook pages are © 2000-2010 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.

テーマは、Drupalで構築されたサイトのプレゼンテーションレイヤー、または外観及び雰囲気を定義するファイルの集まりです。
A "theme" is a collection of files that define the presentation layer or "look and feel" of a Drupal site.

テーマでできること:
With a theme you can:

  • 1つまたは複数ページのレイアウト定義  Define one or more page layouts.
  • 画像やその他グラフィック要素の指定  Specify the display of images and other graphical elements
  • 固定または可変テキスト表示の指定 Specify the display of fixed or variable text
  • フォントやグラフィック属性の指定 Specify the attributes of fonts and graphics
  • モジュールからの出力のオーバーライド(変更) Override (change) the output from modules

テーマは、コンテンツ、コンテンツタイプ、ユーザー入力、ユーザーロールなどの動的な変更に対応するよう構成されています。
A theme can be configured to dynamically respond to changes in the content, content types, user input, user role etc.

テーマは、(上書きするように変更または置換)テキストおよびモジュールによって生成される変数を使用することができます。
たとえば、テーマ、または検索ボタンをデフォルトのラベルを置き換えるに非表示にすると、特定のコンテンツタイプの一部である特定のフィールドを表示することができます。
また、あなたのコンテンツに表示される可能性がありますデフォルトのCSSクラスをオーバーライドできます。
A theme can also be used to override (modify or replace) the text and variables that are generated by modules. For example, a theme can be used to replace the default label on the Search button or to hide and display certain fields that are part of a particular content type. You can also override the default CSS classes that might appear in your content.

Often a theme is used simply to define the look and feel of an entire site, but it can also be used to customize the look and feel of certain sections of a site, of certain types of content, and even of individual nodes or pages. For example, your theme could specify a different look for the front page of your site.

あなたのテーマ設定種類の作業により、次の項目のいくつかの知識が必要になります:
Depending on the kind of theming work you are doing, you will need some knowledge of the following subjects:

  • xHTMLとCSS xHTML and CSS.
  • JavaScriptとjQuery(あなたのテーマで、スクリプトが必要場合のみ)  JavaScript and jQuery (only if your theme needs scripting).
  • Drupalで使用される用語  The terminology used in Drupal.

いくつかの作業でPHPの基礎知識が必要とされますが、
A basic knowledge of PHP is needed for some tasks, but it is possible to avoid it entirely, especially if you do not have a need to override functions.

If you ever get stuck on a problem, read the best practices page, check the troubleshooting FAQ, ask in the theming forum or on IRC @ #drupal-themes. See How to effectively use IRC for instructions. You can also view a number of theming videos which guide you through common scenarios.

For information on installing contributed themes, please visit the Contributed Themes section of the Getting Started Guide.

If you are developing a module that outputs presentation data, then please read the theme section in the module developers guide. All output should be themable.

階層アウトライン
  • テーマ設定オプション:初級者、中級、上級 Theming options: beginner, intermediate, advanced
  • コードを使用しないテーマ設定  Theming without code
  • DrupalのCSSを理解する Understanding CSS in Drupal
ページナビゲーション
‹ テーマ設定について 
Theming Guide
上へ
  up
テーマ設定オプション:初級者、中級、上級 
Theming options: beginner, intermediate, advanced