
Untitled
By: a guest on
May 7th, 2012 | syntax:
None | size: 0.92 KB | hits: 18 | expires: Never
Magento: unset a second/third level block from layout?
<reference name="content">
<block type="catalog/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"/>
</block>
</reference>
<reference name="content">
<action method="unsetChild"><name>product.info</name></action>
</reference>
<reference name="product.info">
<!-- use the alias here -->
<action method="unsetChild"><child>media</child></action>
</reference>
<reference name="new.parent">
<!-- use the full block name here -->
<action method="insert"><child>product.info.media</child></action>
</reference>
<reference name="product.info">
<action method="unsetChild"><name>product.info.media</name></action>
</reference>
<remove name="product.info.media" />