<?php
return array(
    "type" => "story",
    "model" => "App\Models\Story",
    "label" => "Stories",
    "label_singular" => "Story",
    "group" => "communicating",
    "template" => false,
    "order" => false,
    "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" => "subtitle",
            "label" => "Subtitle",
            "type" => "textBox",
            "maxLength" => 150,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:150"
        ),
        array(
            "name" => "image",
            "label" => "Image",
            "type" => "mediaPicker",
            "multiLanguage" => false,
            "mediaType" => "image",
            "placement" => "sidebar",
            "multiple" => false,
            "minSize" => "1",
            "info" => "Pref > 1000x1200px"
        ),
        array(
            "name" => "storyItems",
            "label" => "Story Items / Q&As",
            "type" => "singlePicker",
            "objectType" => "story_item",
            "order" => true
        ),
    ),
    "actions" => array(
        "insert", "edit", "delete"
    )
);
