<?php
return array(
    "type" => "content_snippet",
    "model" => "ContentSnippet",
    "label" => "Content Snippets",
    "label_singular" => "Content Snippet",
    "template" => false,
    "order" => false,
    "group" => "general",
    "shareable" => "none",
    "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" => "content",
            "label" => "content",
            "type" => "editor",
            "multiLanguage" => true,
            "preValidation" => "trim|xss_clean",
            "validation" => ""
        ),
        array(
            "name" => "image",
            "label" => "image",
            "type" => "mediaPicker",
            "multiLanguage" => false,
            "mediaType" => "image",
            "placement" => "sidebar",
            "multiple" => false,
            "minSize" => "0",
            /*
            "thumbnailSizes" => array(
                array("type" => "fit", "name" => "150x150", "width" => 150, "height" => 150),
            )
            */
        ),
        array(
            "name" => "call_to_action",
            "label" => "call to action",
            "type" => "link",
            "multiLanguage" => true,
            "required" => false,
            "maxLabel" => 30,
            "info" => "Just for Related content tiles.",
            "objectTypes" => array("project", "page", "solution", "case_study"),
        )
    ),
    "actions" => array(
        "insert", "edit", "delete"
    )
);
