<?php
return array(
    "type" => "blog_question",
    "model" => "App\Models\BlogQuestion",
    "label" => "Blog Q&A Questions",
    "label_singular" => "Blog Q&A Question",
    "group" => "none",
    "shareable" => "none",
    "template" => false,
    "order" => true,
    "parent" => array(
        "field" => "blog_post_id",
        "contentType" => "blog_post"
    ),
    "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" => "question",
            "label" => "Question",
            "type" => "textArea",
            "maxLength" => 500,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:500",
            "info" => 'Leave empty if title is question.',
            "inList" => false,
            "search" => true,
            "sort" => true
        ),
        array(
            "name" => "answer",
            "label" => "Answer",
            "type" => "editor",
            "multiLanguage" => true,
            "preValidation" => "trim",
            "validation" => ""
        ),
        array(
            "name" => "person",
            "label" => "Interviewed Person",
            "type" => "selectBox",
            "list" => array(
                "1" => "Interviewed 1",
                "2" => "Interviewed 2",
                "3" => "Interviewed 3"
            ),
            "placement" => "sidebar",
            "preValidation" => "trim",
            "defaultValue" => '1',
            "validation" => "required|in:1,2,3"
        ),
    ),
    "actions" => array(
        "insert", "edit", "delete"
    )
);
