0

I am new in Drupal and try to create my own Drupal theme. I have copied the Garland theme from theme/garland and pasted it to sites/all/themes/(renamed mytheme). But when I search on how to integrate templates in Drupal, there I got that I need four mandatory files: comment.tpl.php, page.tpl.php, node.tpl.php and block.tpl.php but in that theme there is no file name called block.tpl.php, inspite I have a template.php.

Please guide me on this, do I need to create block.tpl.php by myself?? If I create it what would be its content and how do I use that, also what is the use of template.php in my site.

I am new in this CMS (Drupal) so any response would be appreciable and helpful for me.

Mike Vranckx
  • 5,557
  • 3
  • 25
  • 28
Ron
  • 394
  • 1
  • 12
  • 24

1 Answers1

0

You can create your own block.tpl.php by copying it form modules/block to your theme's folder (remember to clear the cache!). template.php should contain custom overrides to the theme functions, as well as implementations of process/preprocess hooks. You can find an in-depth discussion about how Drupal's theme system work by following this link and in general by searching drupal.org website.

pamatt
  • 892
  • 10
  • 13
  • thanks @pamatt , but also i need to customize the custom drupal login module , could you help me on that. – Ron Nov 26 '13 at 12:04
  • as I have created a block.tpl.php all the other default functionality are not working lke /node/1 this is not showing any data though i have a static page created in the admin and whenever i rename/remove the block.tpl.php it works, I m totally puzzled. – Ron Dec 02 '13 at 12:15