<?php
return array(
    "type"           => "ny_climate_week_event",
    "model"          => "App\Models\NyClimateWeekEvent",
    "label"          => "New York Climate Week Events",
    "label_singular" => "New York Climate Week Events",
    "group"          => "general",
    "template"       => false,
    "order"          => true,
    "baseUri"        => array(
        1 => array(
            "en" => "/ny-climate-week",
            "de" => "/ny-climate-week",
            "sv" => "/ny-climate-week",
            "fr" => "/ny-climate-week",
            "es" => "/ny-climate-week",
            "pt" => "/ny-climate-week"
        )
    ),
    "search" => array(
        1 => array(
            "primary" => array("title"),
            "display" => array(
                "title" => "title",
            )
        )
    ),
    "fields" => array(
        array(
            "name"          => "title",
            "label"         => "title",
            "type"          => "textBox",
            "maxLength"     => 150,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:150",
            "inList"        => true,
            "search"        => true,
            "sort"          => true
        ),
        array(
            "name"          => "type",
            "label"         => "Event Type",
            "type"          => "textBox",
            "maxLength"     => 200,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "max:200",
        ),
        array(
            "name"          => "summary",
            "label"         => "Summary",
            "type"          => "editor",
            "multiLanguage" => true,
            "preValidation" => "trim|xss_clean",
            "validation"    => ""
        ),
        array(
            "name"          => "link",
            "label"         => "Link",
            "type"          => "link",
            "multiLanguage" => true,
            "required"      => false,
            "maxLabel"      => 60,
            "objectTypes"   => array("page", "cf_solution", "cf_case_study", "project"),
        ),
        array(
            "name"     => "location",
            "label"    => "location",
            "type"     => "location",
            "required" => true
        ),
        array(
            "name"           => "media",
            "label"          => "cover media",
            "type"           => "mediaPicker",
            "multiLanguage"  => false,
            "mediaType"      => "image",
            "placement"      => "sidebar",
            "multiple"       => false,
            "minSize"        => "1",
            /*
            "thumbnailSizes" => array(
                array("type" => "fit", "name" => "1920x768", "width" => 1920, "height" => 768),
                array("type" => "fit", "name" => "1920x680", "width" => 1920, "height" => 680),
                array("type" => "fit", "name" => "768x912", "width" => 768, "height" => 912),
                array("type" => "fit", "name" => "800x320", "width" => 800, "height" => 320),
                array("type" => "fit", "name" => "300x200", "width" => 300, "height" => 200),
            ),
            */
            "relatedContentType" => 'ny_map_point'
        ),
    ),
    "actions" => array(
        "insert", "edit", "delete", "order"
    )
);
