<?php
return array(
    "type" => "story_item",
    "model" => "StoryItem",
    "label" => "Story Items",
    "label_singular" => "Story Item",
    "template" => false,
    "order" => false,
    "group" => "none",
    "shareable" => "none",
    "parent" => array(
        "field" => "story_id",
        "contentType" => "story"
    ),
    "fields" => array(
        array(
            "name" => "title",
            "label" => "title / question",
            "type" => "textBox",
            "maxLength" => 255,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "required|max:255"
        ),
        array(
            "name" => "content",
            "label" => "Content / Answer",
            "type" => "editor",
            "multiLanguage" => true,
            "preValidation" => "xss_clean|trim",
        ),
    ),
    "actions" => array(
        "insert", "edit", "delete"
    )
);
