cancel
Showing results for 
Search instead for 
Did you mean: 

Four columns page

Four columns page

From the layout below, how to put the four blocks in four columns ?

 

<?xml version="1.0" ?>
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_layout.xsd">

    <update handle="empty"/>

    <referenceContainer name="page.wrapper">

        <block class="Magento\Framework\View\Element\Template" name="test1" template="Magento_Theme::test.phtml" />
        <block class="Magento\Framework\View\Element\Template" name="test2" template="Magento_Theme::test.phtml" />
        <block class="Magento\Framework\View\Element\Template" name="test3" template="Magento_Theme::test.phtml" />
        <block class="Magento\Framework\View\Element\Template" name="test4" template="Magento_Theme::test.phtml" />

    </referenceContainer>

</layout>
1 REPLY

Re: Four columns page

You can define 4 columns in layouts.xml and prepare new xml for the 4columns.xml. You can define four blocks over there easily.

Hope this helps.