开发者

Drupal php file in theme

U开发者_如何学Gonder the path "\sites\all\themes\fusion\mytheme\", I found that some php file called "taxonomy_term_page.tpl.php", "views-view-fields--product-brand-category--block-2.tpl.php"... will generate some specific content on specific page, how can I configure this php file to specific link/block or whatever?


Yeah it would be a bit long to explain what to do with regards to what each file does. You would need to play around a bit and see how it all works.

I would recommend that you check out:

http://drupal.org/theme-guide/6

and read up on how the theme system works for the Drupal version that you are using.

but for example the "taxonomy_term_page.tpl.php" would be used to change the output of content that you would visit for a taxonomy term that you created.

eg. mysite.com/taxonomy/term/ which might be mysite.com/cooking-books/italian-pizzas

and the "views-view-fields--product-brand-category--block-2.tpl.php" would be for theming the output to one of your views which is configured to output as a block...

I'm happy to answer any more of your questions


You aren't going to be able to configure a specific file to fill the role for a specific theme (the files are picked by their file name for their purpose).

You should check out the devel module (specifically the theme devel module), which can tell you what parts of the output are expected in specific files. I'm not sure if the themer module is still in devel for 6.x, but if it isn't, try the devel_themer module.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜