开发者

Customise output of $content in Drupal nodes

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜