extranet-overview

Information

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

Files

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

$schema: http://json-schema.org/draft-07/schema
$id: https://finstral.com/apps/extranet/extranet-overview
type: object
required:
  - breadcrumb
  - categories
  - index_name
  - langcode
additionalProperties: false
properties:
  breadcrumb:
    type: array
    items:
      type: object
      additionalProperties: false
      required:
        - text
      properties:
        text:
          type: string
        url:
          type: string
          format: uri-reference
  categories:
    heading:
      type: string
    items:
      type: array
      card:
        type: string
        format: html
  langcode:
    type: string
  index_name:
    type: string
Mocks
// src/components/apps/extranet/extranet-overview/mocks.yaml

$hidden: true
index_name: finstral_extranet_stage
langcode: en
$variants:
  - $name: Full page
    breadcrumb:
      - text: Dashboard
        url: url
      - text: Extranet
    categories:
      heading: Kategorien
      items:
        - $tpl: elements/link-card
          $ref: elements/link-card#Extranet Category Card
          link:
            label: Aktuelles
        - $tpl: elements/link-card
          $ref: elements/link-card#Extranet Category Card
          link:
            label: Marketing
        - $tpl: elements/link-card
          $ref: elements/link-card#Extranet Category Card
          link:
            label: Partner Studio
        - $tpl: elements/link-card
          $ref: elements/link-card#Extranet Category Card
          link:
            label: Beratung und Service
        - $tpl: elements/link-card
          $ref: elements/link-card#Extranet Category Card
          link:
            label: Montage
        - $tpl: elements/link-card
          $ref: elements/link-card#Extranet Category Card
          link:
            label: Bestellwesen
Template
// src/components/apps/extranet/extranet-overview/extranet-overview.twig

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

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

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

Variants

Full page
Open

overview.title

latest_assets.title