When my custom product type displays, I want a whole new layout/view. I have the content area being removed by nothing shows when I add it back. Can someone tell me what I'm doing wrong?
<referenceContainer name="content" remove="true" />
<referenceContainer name="content"> <block class="Magento\Framework\View\Element\Template" name="customproductform" template="CustomProductForm::customproductform.phtml"></block> </referenceContainer>
After you have removed a container, you can not use the "referenceContainer" instruction for it, because there is nothing to reference.
You should create a new container first with the "container" directive: http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/layouts/xml-manage.html#create_cont