Error in user YAML: (<unknown>): found character that cannot start any token while scanning for the next token at line 5 column 16
---
title: Admin users can mark CMS blocks and CMS elements as favorites
issue: NEXT-22617
author: Joshua Behrens
author_email: code@joshua-behrens.de
author_github: @JoshuaBehrens
---
- Added new property
expandChevronDirection
tosw-sidebar-collapse
to control the icon direction for the icon in its collapsed state - Added new base class
UserConfigClass
, that is an extraction of a base class of theSalesChannelFavoritesService
class to reduce duplicate code when building other dynamic user configurations - Added new class
CmsBlockFavoritesService
based onUserConfigClass
as service by idcmsBlockFavorites
to store user favourites for cms_block with the configuration keycms-block-favorites
- Added new class
CmsElementFavoritesService
based onUserConfigClass
as service by idcmsElementFavorites
to store user favourites for cms_block with the configuration keycms-element-favorites
- Added new button in
sw-cms-sidebar
within a new twig blocksw_cms_sidebar_block_overview_preview_favorite_action
to toggle user favourites for a cms block - Added default and dynamic cms block category for favourites. Its content are either entries provided by
cmsBlockFavorites
or an empty state - Changed display of CMS elements in
sw-cms-slot
by grouping them by their favourite state provided bycmsElementFavorites
in collapsable panels - Added new overlay button with a heart icon to entries in
sw-cms-slot
to toggle a CMS elements' favourite state for the current user