Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Here is the xml block in question:
- <block type="review/product_view_list" name="product.info.product_additional_data" as="product_review" template="review/product/view/list.phtml">
- <block type="page/html_pager" name="product_review_list.toolbar" />
- <block type="core/template" name="product_review_list.count" template="review/product/view/count.phtml" />
- <block type="review/product_view_list" name="product.info.product_additional_data" as="product_additional_data" template="review/product/view/list.phtml">
- <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">
- <action method="setMayBeInvisible"><value>1</value></action>
- </block>
- </block>
- </block>
- </block>
- If I add this to /local.xml as per:
- <catalog_product_view>
- <reference="content">
- <XML BLOCK GOES HERE>
- </reference>
- </catalog_product_view>
- I get the exact content I want (including the pager toolbar), BUT it appears in the content area, at the same level as view.phtml, outside of my design layout. This appears BEFORE I add <? getChildHtml('product_review') ?> into view.phtml.
- If I amend the local.xml to read:
- <catalog_product_view>
- <reference="content">
- <block type="catalog/product_view" name="product.info" template="catalog/product/view.phtml">
- <XML BLOCK GOES HERE>
- </block>
- Then the entire view.phtml is duplicated (loaded within itself).
- If I add this block directly into catalog.xml (which I am trying to avoid), then it correctly does not appear until I add:
- <?php echo $this->getChildHtml('product_review') ?>
- and it appears in the correct place - HOWEVER - none of the sub blocks (such as <block type="page/html_pager" name="product_review_list.toolbar" /> ) get rendered, and they do exist with getChildHtml statements in the review/product/view/list.phtml file that is being loaded.
- So - How can I get all of these blocks rendering FROM WITHIN the view.phtml, with sub blocks, and by using local.xml ?
- Cheers!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement