<?php
  return [
    "type"           => "slide",
    "model"          => "Slide",
    "label"          => "Slides",
    "label_singular" => "Slide",
    "group"          => "none",
    "order"          => TRUE,
    "template"       => FALSE,
    //  "showSlug" => true,
    "showUri"        => TRUE,
    "baseUri"        => [
      'de' => Lang::get('routes.uri_slides', [], 'de'),
      'en' => Lang::get('routes.uri_slides', [], 'en'),
      'fr' => Lang::get('routes.uri_slides', [], 'fr')
    ],
    "parent"         => [
      "field"       => "slider_id",
      "contentType" => "slider"
    ],
    "fields"         => [
      [
        "name"          => "title",
        "label"         => "Block Title",
        "type"          => "textBox",
        "maxLength"     => 255,
        "multiLanguage" => TRUE,
        "preValidation" => "strip_tags|xss_clean|trim",
        "validation"    => "required|max:255",
        "inList"        => TRUE,
        "search"        => TRUE,
        "sort"          => TRUE
      ],
      [
        "name"          => "description",
        "label"         => "Description",
        "type"          => "textArea",
        "maxLength"     => 3000,
        "multiLanguage" => TRUE,
        "preValidation" => "xss_clean|trim",
        "validation"    => "max:3000"
      ],
      [
        "name"               => "image",
        "label"              => "Image",
        "type"               => "mediaPicker",
        "multiLanguage"      => FALSE,
        "mediaType"          => "image",
        "multiple"           => FALSE,
        "minSize"            => "0",
        "thumbnailSizes"     => [
          ["type" => "fit", "name" => "Fit870xAuto", "width" => 761, "height" => 429 ],
          ["type" => "resize", "name" => "Resize870xAuto", "width" => 761, "height" => NULL ]
        ],
        "relatedContentType" => 'slide',
        "info"               => "Upload Image"
      ],
      [
        "name"          => "cta_title",
        "label"         => "CTA Title",
        "type"          => "textBox",
        "maxLength"     => 255,
        "multiLanguage" => TRUE,
        "preValidation" => "strip_tags|xss_clean|trim",
        "validation"    => "max:255"
      ],
      [
        "name"          => "cta_url",
        "label"         => "CTA Url",
        "type"          => "textBox",
        "maxLength"     => 255,
        "multiLanguage" => TRUE,
        "preValidation" => "strip_tags|xss_clean|trim",
        "validation"    => "max:255"
      ]
    ],
    "actions"        => [
      "insert", "edit", "delete", "order"
    ]
  ];
