Skip to content

Latest commit

 

History

History
15 lines (15 loc) · 802 Bytes

2022-10-18-filter-blocks-and-elements-based-on-page-type.md

File metadata and controls

15 lines (15 loc) · 802 Bytes
title issue author author_email author_github
Filter blocks and elements based on page type
NEXT-17716
Niklas Limberg
n.limberg@shopware.com
NiklasLimberg

Administration

  • Added functions to the cms.service which determine whether a block/element is allowed on a given page type
  • Changed sw-cms-sidebar/index.js to restrict the selection of blocks based on the page type
  • Changed sw-cms-slot/index.js to restrict the selection of elements based on the page type
  • Changed the CMS-Block sidebar-filter to restrict it to certain page types
  • Changed the CMS-Element sidebar-filter to restrict it to certain page types
  • Added property currentPageType to the cms-page-state store
  • Changed sw-cms-detail/index.js to set the current page type in the cms-page-state store