<?php
return array(
    "type" => "block_timeline_item",
    "model" => "BlockTimelineItem",
    "label" => "Timeline Items",
    "label_singular" => "Timeline Item",
    "template" => false,
    "order" => false,
    "group" => "none",
    "parent" => array(
        "field" => "block_id",
        "contentType" => "Block"
    ),
    "shareable" => "none",
    "fields" => array(
        array(
            "name" => "title",
            "label" => "title",
            "type" => "textBox",
            "maxLength" => 100,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "required|max:100",
            "inList" => true,
            "search" => true,
            "sort" => true
        ),
        array(
            "name" => "content",
            "label" => "Content",
            "type" => "editor",
            "multiLanguage" => true,
            "preValidation" => "trim|xss_clean",
            "validation" => "",
        ),
        array(
            "name" => "timeline_label",
            "label" => "Label (on timeline)",
            "type" => "textBox",
            "maxLength" => 50,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "required|max:50",
            "placement" => "sidebar",
        ),
        array(
            "name" => "mediaItem",
            "label" => "Image",
            "type" => "mediaPicker",
            "multiLanguage" => false,
            "mediaType" => "image",
            "placement" => "sidebar",
            "multiple" => false,
            "minSize" => "1",
        ),
        array(
            "name" => "video",
            "label" => "Video",
            "type" => "textBox",
            "maxLength" => 255,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:255"
        ),
    ),
    "actions" => array(
        "insert", "edit", "delete"
    )
);
