commercetools-8.x-1.2-alpha1/modules/commercetools_decoupled/components/blocks/categories-cards-block/categories-cards-block.component.yml
modules/commercetools_decoupled/components/blocks/categories-cards-block/categories-cards-block.component.yml
$schema: https://git.drupalcode.org/project/drupal/-/raw/HEAD/core/assets/schemas/v1/metadata.schema.json
name: commercetools categories cards 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.
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
cards_columns:
type: integer
label: Number of columns (cards only)
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/CategoriesCardsBlock.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/CategoriesCards.js: { attributes: { type: module } }
../../../js/molecules/CategoriesCardsItems.js:
{ attributes: { type: module } }
