简体   繁体   中英

Drupal php file in theme

在路径“ \\ sites \\ all \\ themes \\ fusion \\ mytheme \\”下,我发现一些名为“ taxonomy_term_page.tpl.php”,“ views-view-fields--product-brand-category--block-2”的php文件.tpl.php” ...将在特定页面上生成一些特定内容,如何配置此php文件为特定链接/块或其他内容?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM