Skip to main content
Magento

Return to Answer

replaced http://magento.stackexchange.com/ with https://magento.stackexchange.com/
Source Link

Add following file at /VendorName/ModuleName/view/frontend/layout/controller_index_index.xml

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="3columns" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> 
 <body>
 <referenceContainer name="content">
 </referenceContainer>
 </body>
</page>

Notice layout="3columns" in above code. This will help display the site outline with an empty content area. More details here: http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/layouts/xml-manage.html#layout_markup_columns

In case you want to set default layout dynamically for your custom module, you might want to look at this post: Magento 2 - Set the page layout dynamically based on admin configuration Magento 2 - Set the page layout dynamically based on admin configuration

Hope this helps !!

Add following file at /VendorName/ModuleName/view/frontend/layout/controller_index_index.xml

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="3columns" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> 
 <body>
 <referenceContainer name="content">
 </referenceContainer>
 </body>
</page>

Notice layout="3columns" in above code. This will help display the site outline with an empty content area. More details here: http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/layouts/xml-manage.html#layout_markup_columns

In case you want to set default layout dynamically for your custom module, you might want to look at this post: Magento 2 - Set the page layout dynamically based on admin configuration

Hope this helps !!

Add following file at /VendorName/ModuleName/view/frontend/layout/controller_index_index.xml

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="3columns" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> 
 <body>
 <referenceContainer name="content">
 </referenceContainer>
 </body>
</page>

Notice layout="3columns" in above code. This will help display the site outline with an empty content area. More details here: http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/layouts/xml-manage.html#layout_markup_columns

In case you want to set default layout dynamically for your custom module, you might want to look at this post: Magento 2 - Set the page layout dynamically based on admin configuration

Hope this helps !!

Source Link
Reena Parekh
  • 1.9k
  • 2
  • 19
  • 37

Add following file at /VendorName/ModuleName/view/frontend/layout/controller_index_index.xml

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="3columns" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> 
 <body>
 <referenceContainer name="content">
 </referenceContainer>
 </body>
</page>

Notice layout="3columns" in above code. This will help display the site outline with an empty content area. More details here: http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/layouts/xml-manage.html#layout_markup_columns

In case you want to set default layout dynamically for your custom module, you might want to look at this post: Magento 2 - Set the page layout dynamically based on admin configuration

Hope this helps !!

default

AltStyle によって変換されたページ (->オリジナル) /