I'm trying to achieve exercise 3.6.9 of "Core Principles for Theming in Magento 2" from Magento U.
In my custom theme, I have this tree structure :
|-- Magento_Theme
| |-- layouts.xml
| `-- page_layout
| `-- 4columns.xml
layouts.xml contains :
<?xml version="1.0" encoding="UTF-8"?>
<page_layouts xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/PageLayout/etc/layouts.xsd">
<layout id="4columns">
<label translate="true">4 columns</label>
</layout>
</page_layouts>
And 4columns.xml contains :
<?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="3columns"/>
<referenceContainer name="4columns">
<container name="fourth.column" htmlTag="div" htmlClass="fourth-column" after="-" >
</container>
</referenceContainer>
</layout>
When I select the "4 columns" layout in "Content > Pages > Home Page", I get a white screen in the frontend homepage. What's wrong with this code ?
I'm doing my tests with a fresh install of Magento 2.2.0 with sample data. My homepage is set to display a widget with new products list when it works, which works fine when selecting other default layouts.