<?php
  return [
    "type"           => "cf_page_home",
    "model"          => "CfPageHome",
    "label"          => "Homepage Configuration",
    "label_singular" => "Homepage Configuration",
    "parent"         => [
      "field"       => "entry_id",
      "contentType" => "page"
    ],
    "search"         => TRUE,
    "group"          => "none",
    "template"       => FALSE,
    "order"          => FALSE,
    "shareable"      => "none",
    "fields"         => [
      [
        "name"          => "title",
        "label"         => "Page Title",
        "type"          => "textBox",
        "maxLength"     => 100,
        "multiLanguage" => TRUE,
        "preValidation" => "xss_clean|trim",
        "validation"    => "required|max:100"
      ],
      [
        "name"          => "cf_lead_title",
        "label"         => "Lead Title",
        "type"          => "textArea",
        "maxLength"     => 300,
        "multiLanguage" => TRUE,
        "preValidation" => "xss_clean|trim",
        "validation"    => "max:300"
      ],
      [
        "name"          => "cf_lead_subtitle",
        "label"         => "Lead Subtitle",
        "type"          => "textArea",
        "maxLength"     => 3000,
        "multiLanguage" => TRUE,
        "preValidation" => "xss_clean|trim",
        "validation"    => "max:3000"
      ],
      [
        "name"          => "cf_cta",
        "label"         => "Lead CTA Title",
        "type"          => "textBox",
        "maxLength"     => 255,
        "multiLanguage" => TRUE,
        "preValidation" => "strip_tags|xss_clean|trim",
        "validation"    => "max:255"
      ],
      [
        "name"          => "cf_cta_url",
        "label"         => "Lead CTA Url",
        "type"          => "textBox",
        "maxLength"     => 255,
        "multiLanguage" => TRUE,
        "preValidation" => "strip_tags|xss_clean|trim",
        "validation"    => "max:255"
      ],
      [
        "name"               => "cfImage",
        "label"              => "Image",
        "type"               => "mediaPicker",
        "multiLanguage"      => FALSE,
        "mediaType"          => "image",
        "multiple"           => FALSE,
        "minSize"            => "0",
        "thumbnailSizes"     => [
          ["type" => "fit", "name" => "Fit870xAuto", "width" => 870, "height" => NULL],
          ["type" => "resize", "name" => "Resize870xAuto", "width" => 870, "height" => NULL]
        ],
        "relatedContentType" => 'entry',
        "info"               => "Upload Image"
      ],
      [
        "name"          => "cf_image_title",
        "label"         => "Image Title",
        "type"          => "textArea",
        "maxLength"     => 300,
        "multiLanguage" => TRUE,
        "preValidation" => "xss_clean|trim",
        "validation"    => "max:300"
      ],
      [
        "name"          => "cf_image_subtitle",
        "label"         => "Image Subtitle",
        "type"          => "textArea",
        "maxLength"     => 3000,
        "multiLanguage" => TRUE,
        "preValidation" => "xss_clean|trim",
        "validation"    => "max:3000"
      ],
      [
        "name"          => "cf_image_cta",
        "label"         => "Image CTA Title",
        "type"          => "textBox",
        "maxLength"     => 255,
        "multiLanguage" => TRUE,
        "preValidation" => "strip_tags|xss_clean|trim",
        "validation"    => "max:255"
      ],
      [
        "name"          => "cf_image_cta_url",
        "label"         => "Image CTA Url",
        "type"          => "textBox",
        "maxLength"     => 255,
        "multiLanguage" => TRUE,
        "preValidation" => "strip_tags|xss_clean|trim",
        "validation"    => "max:255"
      ],
      [
        "name"          => "cf_video_title",
        "label"         => "Video Title",
        "type"          => "textArea",
        "maxLength"     => 300,
        "multiLanguage" => TRUE,
        "preValidation" => "xss_clean|trim",
        "validation"    => "max:300"
      ],
      [
        "name"          => "cf_video_url",
        "label"         => "Video URL",
        "type"          => "textBox",
        "maxLength"     => 300,
        "multiLanguage" => TRUE,
        "preValidation" => "strip_tags|xss_clean|trim",
        "validation"    => "max:300"
      ],
      [
        "name"          => "cf_video_cta",
        "label"         => "Video CTA Title",
        "type"          => "textBox",
        "maxLength"     => 255,
        "multiLanguage" => TRUE,
        "preValidation" => "strip_tags|xss_clean|trim",
        "validation"    => "max:255"
      ],
      [
        "name"          => "cf_video_cta_url",
        "label"         => "Video CTA Url",
        "type"          => "textBox",
        "maxLength"     => 255,
        "multiLanguage" => TRUE,
        "preValidation" => "strip_tags|xss_clean|trim",
        "validation"    => "max:255"
      ],
    ],
    "actions"        => [
      "insert", "edit", "delete"
    ]
  ];
