Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
I have create a .tpl file for my testmodule called block-testmodule.tpl.php. To create this file I just copied and renamed block.tpl.php which just had a few divs inside of it. Why do I need to modify the .tpl file? shouldn't I just modify the css file? I am not sure what the best practice is for Drupal.
Comments
u mean the corners of the
u mean the corners of the block? or the corners of an image??
if u mean the corners of an image u can do it using 2 method:
- the image cache module
- or using css (like the facebook profile image)
if u mean the corners of the block, so u have to theme the block, modifyh block.tpl.php and it's so easy to make it...
I want to round the corners
I want to round the corners of a block.
I have create a .tpl file for my testmodule called block-testmodule.tpl.php. To create this file I just copied and renamed block.tpl.php which just had a few divs inside of it. Why do I need to modify the .tpl file? shouldn't I just modify the css file? I am not sure what the best practice is for Drupal.
Hello nhero you can use css
Hello nhero
you can use css for round cornering the images or blocks