subcategory-overview

Information

Folder
src/components/apps/extranet/subcategory-overview

Files

Schema
// src/components/apps/extranet/subcategory-overview/schema.yaml

$schema: http://json-schema.org/draft-07/schema
$id: https://finstral.com/apps/extranet/subcategory-overview
type: object
required:
  - breadcrumb
  - index_name
  - langcode
  - refinement_lists
  - subcategory
additionalProperties: false
properties:
  breadcrumb:
    type: array
    items:
      type: object
      additionalProperties: false
      required:
        - text
      properties:
        text:
          type: string
        url:
          type: string
          format: uri-reference
  index_name:
    type: string
  langcode:
    type: string
  refinement_lists:
    type: array
    items:
      type: object
      additionalProperties: false
      required:
        - title
        - facet_key
      properties:
        title:
          type: string
        facet_key:
          type: string
  subcategory:
    type: object
    additionalProperties: false
    required:
      - label
      - value
    properties:
      label:
        type: string
      value:
        type: number
Mocks
// src/components/apps/extranet/subcategory-overview/mocks.yaml

$hidden: true
index_name: finstral_extranet_stage
langcode: en
refinement_lists:
  - title: Language
    facet_key: language
  - title: Product family
    facet_key: product_family
  - title: Wall Type
    facet_key: wall_type
subcategory:
  label: Handbooks
  value: 142
$variants:
  - $name: Full page
    breadcrumb:
      - text: Dashboard
        url: /
      - text: Extranet
        url: /compendium
      - text: Marketing
        url: /compendium/marketing
      - text: Brochures and instructions
Template
// src/components/apps/extranet/subcategory-overview/subcategory-overview.twig

{% set template_components_breadcrumb %}
	{% include "@template-components/breadcrumb/breadcrumb.twig" with {
		breadcrumb: breadcrumb
	} only %}
{% endset %}

{% set app_extranet_search %}
	{% include "@apps/extranet/subcategory-overview/app-subcategory-overview/app-subcategory-overview.twig" with {
		index_name: index_name,
		langcode: langcode,
		refinement_lists: refinement_lists,
		subcategory: subcategory,
	} only %}
{% endset %}

{% include "@templates/cloud-content/cloud-content.twig" with {
	breadcrumb: template_components_breadcrumb,
	content: app_extranet_search,
} only %}

Variants

Full page
Open

Handbooks

search.refinements.title

search.searched_for: 

search_result.count: