1

Drupal 7 でテーマを作成し、ノード ページをレンダリングしました。

最初に、drupal は page--node.tpl.php で関数を呼び出します。

print render($page['content']);

次に、template.php で関数を呼び出します。

function mytheme_preprocess_node(&$vars){
  //...
};

3 つ目は、node.tpl.php を使用してページをレンダリングします。

では、$page['content'] (page--node.tpl.php)、$vars(template.php)、および node.tpl.php の変数の間の関係は何ですか? この質問に答えるドキュメントはどこにありますか?

4

1 に答える 1

0

Thats is the drupal theme workflow, i think you need to see the 'Big picture'

Here is explained the theme registry, and can clarify our question

And here and overview of theme files

于 2013-03-14T09:12:13.843 に答える