Skip to content

Commit 88da782

Browse files
add the possibility to add display mode dependant layout handles
1 parent 9fc6972 commit 88da782

File tree

1 file changed

+1
-0
lines changed
  • app/code/Magento/Catalog/Controller/Category

1 file changed

+1
-0
lines changed

app/code/Magento/Catalog/Controller/Category/View.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ public function execute()
239239
$page->addPageLayoutHandles(['type' => $parentPageType], null, false);
240240
}
241241
$page->addPageLayoutHandles(['type' => $pageType], null, false);
242+
$page->addPageLayoutHandles(['displaymode' => strtolower($category->getDisplayMode())], null, false);
242243
$page->addPageLayoutHandles(['id' => $category->getId()]);
243244

244245
// apply custom layout update once layout is loaded

0 commit comments

Comments
 (0)