name: zab/banner
title: "Banner"
description: "Block banner with two versions, a default one and a smaller one"
group: Content Elements
priority: -2
prefixFields: true
prefixType: full
fields:
  - identifier: Zab/GeneralRow
    type: Basic

  #- identifier: opt_type
  #  type: Select
  #  label: 'Type of Banner'
  #  renderType: selectSingle
  #  default: 'default'
  #  items:
  #    - label: 'Default'
  #      value: default
  #    - label: 'Smaller'
  #      value: smaller
  #  onChange: reload

  # Tab Content
  - identifier: tab_content
    type: Tab
    label: "Content"
  #- identifier: opt_color
  #  label: 'Card Color'
  #  type: Select
  #  renderType: selectSingle
  #  itemsProcFunc: 'Zab\ZabSite\Utility\ContentOptions->getColors'
  #  displayCond: 'FIELD:zab_banner_opt_type:=:smaller'
  - identifier: title
    type: TextInput
    label: "Title"
  - identifier: info
    type: Textarea
    label: "Info"
  #  displayCond: 'FIELD:zab_banner_opt_type:=:default'
  - identifier: cta
    type: Link
    label: "Button"
    allowedTypes:
      - page
      - url
      - file
  #  displayCond: 'FIELD:zab_banner_opt_type:=:default'

  #- identifier: link1
  #  type: Link
  #  label: 'Link 1'
  #  allowedTypes:
  #    - page
  #    - url
  #    - file
  #  displayCond: 'FIELD:zab_banner_opt_type:=:smaller'
  #- identifier: link2
  #  type: Link
  #  label: 'Link 2'
  #  allowedTypes:
  #    - page
  #    - url
  #    - file
  #  displayCond: 'FIELD:zab_banner_opt_type:=:smaller'
