title: Magento- How can i add a new custom block in product details page using module
body: <p>I am doing a magento customaization site, I need to add  the products addtional attributes like it's type,version etc .I am new to magento , How can i add the new custom block to product details page. I have created a module , and i am using below coding.</p>
  
  <p>app\code\local\SmartGrowth\CompatibleWith\Block\compatible.php</p>
  
  <p>
  
  <p>class SmartGrowth_CompatibleWith_Block_CompatibleWith extends Mage_Catalog_Block_Product_View</p>
  
  <p>{</p>
  
  <pre><code>protected function _prepareLayout()
      {
  
              //$this-&gt;getProduct()-&gt;setName($this-&gt;getProduct()-&gt;getPrice());
              $this-&gt;getProduct()-&gt;setName($this-&gt;getProduct()-&gt;getShortDescription());
  
  
        parent::_prepareLayout();
    } 
  
  
  }
  </code></pre>
  
  <p>I have used  the below coding in _prepareLayout() but it seem to be repeat the block 5 times and the location of the block appeared is a probs</p>
  
  <pre><code>$block = $this-&gt;getLayout()-&gt;createBlock(
  'Mage_Core_Block_Template',
  'my_block_name_here',
  array('template' =&gt; 'catalog/product/compatiblewith.phtml')
  );
  $this-&gt;getLayout()-&gt;getBlock('content')-&gt;append($block);
  </code></pre>
  
  <p>Please help how can i do this , I am new to magento , Any help will be appreciated.</p>