开发者

Customise output of $content in Drupal nodes

开发者 https://www.devze.com 2023-01-10 04:38 出处:网络
I have a custom content type called \'business-profile\' and I have the template files \'node-business_profile.tpl.php开发者_StackOverflow中文版\' which works fine, but I want to be able to edit the l

I have a custom content type called 'business-profile' and I have the template files 'node-business_profile.tpl.php开发者_StackOverflow中文版' which works fine, but I want to be able to edit the layout of the $content variable

ie I want display some elements in particular divs etc

What is the best approach?


Assuming this is drupal 6, use the devel and theamer modules to show you the templates and how they can be overridden.

In short most of the variables in content can be overridden with custom field templates.

0

精彩评论

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