commercetools-8.x-1.2-alpha1/modules/commercetools_decoupled/components/blocks/categories-list-block/categories-list-block.component.yml
modules/commercetools_decoupled/components/blocks/categories-list-block/categories-list-block.component.yml
$schema: https://git.drupalcode.org/project/drupal/-/raw/HEAD/core/assets/schemas/v1/metadata.schema.json
name: commercetools categories list block
group: commercetools
props:
type: object
properties:
product_list_index:
type: integer
title: Product List Index
description: The Product List Index to affect by.
target_page:
type: string
title: Target page
description: The internal path to redirect on action.
max_level:
type: number
title: Maximum level
description: Maximum level of categories hierarchy to display.
display_from_current:
type: boolean
label: Display from current category
parent_category:
type: string
label: Parent category
initial_level:
type: integer
label: Initial visibility level
display_style:
type: string
label: Display style
libraryOverrides:
dependencies:
- commercetools_decoupled/commercetools
- commercetools_decoupled/placeholderify
- core/drupal.message
- commercetools_decoupled/commercetools.molecules.categories_items_base
- commercetools_decoupled/commercetools.organisms.categories_base
js:
js/CategoriesListBlock.js: { attributes: { type: 'module', defer: true } }
# We have to include here all dependencies of the components used in the
# template to extract translation strings from them by Drupal.
# @see https://medium.com/swissquote-engineering/drupal-8-react-i18n-and-typescript-c43aab12532d
../../../js/organisms/CategoriesList.js: { attributes: { type: module } }
../../../js/molecules/CategoriesLinksItems.js:
{ attributes: { type: module } }
