<?php
return array(
    "type"           => "cop_topic",
    "model"          => "CopTopic",
    "label"          => "Cop Map Topics",
    "label_singular" => "Cop Map Topic",
    "group"          => "general",
    "template"       => false,
    "order"          => true,
    "search" => array(
    ),
    "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"          => "short_description",
            "label"         => "Short Description",
            "type"          => "textArea",
            "maxLength"     => 255,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:255",
        ),
        array(
            "name"          => "long_description",
            "label"         => "Description",
            "type"          => "editor",
            "multiLanguage" => true,
            "preValidation" => "trim|xss_clean",
            "validation"    => ""
        ),
        array(
            "name" => "cta",
            "label" => "Call to action",
            "type" => "link",
            "multiLanguage" => true,
            "required" => false,
            "maxLabel" => 50,
            "objectTypes" => array(),
        ),
        array(
            "name"           => "icon",
            "label"          => "Topic icon",
            "type"           => "mediaPicker",
            "multiLanguage"  => false,
            "mediaType"      => "document",
            "placement"      => "sidebar",
            "multiple"       => false,
            "minSize"        => "0",
            "relatedContentType" => 'cop_topic'
        ),
        array(
            "name"           => "image",
            "label"          => "Topic box image",
            "type"           => "mediaPicker",
            "multiLanguage"  => false,
            "mediaType"      => "image",
            "placement"      => "sidebar",
            "multiple"       => false,
            "minSize"        => "0",
            "relatedContentType" => 'cop_topic'
        ),
        array(
            "name" => "topic_color",
            "label" => "Topic Color",
            "type" => "colorPicker",
            "multiLanguage" => false,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "required|max:7",
            "placement" => "sidebar"
        ),
    ),
    "actions" => array(
        "insert", "edit", "delete", "order"
    )
);
