1

I'm attempting to rearrange some elements on a webpage and my code won't render it its new position.

The top of the page is handled in view.phtml and the bottom in list.phtml. I'm wanting to move form.phtml from view to list.

The xml looks like this:

     <block type="review/product_view" name="product.info" template="catalog/product/view.phtml">
            <block type="catalog/product_view_media" name="product.info.media" as="media" template="catalog/product/view/media.phtml">
                <action method="disableGallery"/>
            </block>
            <block type="review/form" name="product.review.form" as="review_form" template="review/form.phtml"/>

the view.phtml contains this call:

     <?php echo $this->getChildHtml('review_form') ?>

However, no dice. I'm very new to Magento, so any help would be great. I've looked into the following questions and more with no results:

Nested block within a reference not rendering when using ->getChildHtml()

Magento $this->getChildHtml('media') return blank

Call magento template via $this->getChildHtml()

Thanks!

Community
  • 1
  • 1
Nieriel
  • 11
  • 1
  • 4

1 Answers1

0

As per as your description,review child block is call in under view then...

it should be

     <block type="review/product_view" name="product.info" template="catalog/product/view.phtml">
                <block type="catalog/product_view_media" name="product.info.media" as="media" template="catalog/product/view/media.phtml">
                    <action method="disableGallery"/>
                </block>
                <block type="review/form" name="product.review.form" as="review_form">
                        <block type="page/html_wrapper" name="product.review.form.fields.before" as="form_fields_before" translate="label">
                            <label>Review Form Fields Before</label>
                            <action method="setMayBeInvisible"><value>1</value></action>
                        </block>
                    </block>
.........
Amit Bera
  • 7,581
  • 7
  • 31
  • 57