How do I override Magento core blocks?

I’m trying to override the Magento review system and use my own instead.

I’ve created a module and activated it (viewable in the config area of the site). I’ve created a custom layout and I’m now attempting to override some of the blocks.

I’ve tried two approaches:

<review_product_list translate="label">

    <block type="reviewwidget/widget" name="product.info.product_additional_data" as="product_additional_data" template="reviewwidget/widget.phtml"></block> 

</review_product_list>

And

<review_product_list translate="label">

    <reference name="content">
        <block type="reviewwidget/widget" name="product.info.product_additional_data" as="product_additional_data" template="reviewwidget/widget.phtml"></block> 
    </reference>   

</review_product_list>

I expected the first approach to override the block and use my custom block and template. It has no effect.

The second approach renders the cotent in my custom template after the block I’m trying to replace.

Can anyone show me how to replace this block?

Leave a Reply

*

Hire Me
Follow Me!
Search
Most Popular Articles & Pages
Because your vote is Important
Sorry, there are no polls available at the moment.
Categories