Skip to content

Commit 7a48b44

Browse files
committed
MC-2369: Implement full width layout for category
- Remove layout updates - Add new dedicated layout for category
1 parent 46c5cc1 commit 7a48b44

File tree

4 files changed

+29
-33
lines changed

4 files changed

+29
-33
lines changed

app/code/Magento/PageBuilder/view/frontend/layout/catalog_category_view.xml

Lines changed: 0 additions & 12 deletions
This file was deleted.

app/code/Magento/PageBuilder/view/frontend/layouts.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,7 @@
99
<layout id="cms_full_width">
1010
<label translate="true">CMS - Full Width</label>
1111
</layout>
12+
<layout id="category_full_width">
13+
<label translate="true">Category - Full Width</label>
1214
</layout>
1315
</page_layouts>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_layout.xsd">
9+
<update handle="2columns-left" />
10+
11+
<container name="columns.top.wrapper" htmlTag="div" htmlClass="page-main"/>
12+
<move element="columns.top" destination="columns.top.wrapper"/>
13+
<move element="columns.top.wrapper" destination="page.wrapper" after="page.top"/>
14+
<move element="category.view.container" destination="page.wrapper" after="columns.top.wrapper"/>
15+
16+
<container name="category.image.wrapper" htmlTag="div" htmlClass="page-main"/>
17+
<move element="category.image" destination="category.image.wrapper"/>
18+
<move element="category.image.wrapper" destination="category.view.container"/>
19+
20+
<container name="category.description.wrapper" htmlTag="div"/>
21+
<move element="category.description" destination="category.description.wrapper"/>
22+
<move element="category.description.wrapper" destination="category.view.container" after="category.image.wrapper"/>
23+
24+
<container name="category.cms.wrapper" htmlTag="div" htmlClass="page-main"/>
25+
<move element="category.cms" destination="category.cms.wrapper"/>
26+
<move element="category.cms.wrapper" destination="category.view.container" after="category.description.wrapper"/>
27+
</layout>

app/code/Magento/PageBuilder/view/frontend/templates/category/description.phtml

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)