I'm currently making my own module, but i'm having trouble with just displaying a block in the catalog product view.
I've added this line to default/layout/catalog.xml
<block type="catalog/product_view" name="product.info.rating" template="rating/rating.phtml"/>
and my template/rating/rating.phtml looks like this
<p>halp</p>
Best Answer
Add this in your
your_theme_path/layout/local.xml
instead.Now call child html in
theme/template/catalog/product/view.phtml
Another way
If you don't want to edit
theme/template/catalog/product/view.phtml
file then change yourlocal.xml
as follow:This block will appear automatically in product view page, however it will be called along with other
alert.urls