<?php
return array(
    "type" => "project_image",
    "model" => "ProjectImage",
    "label" => "Project Images",
    "label_singular" => "Project Image",
    "template" => false,
    "group" => "none",
    "order" => true,
    "parent" => array(
        "field" => "project_id",
        "contentType" => "project"
    ),
    "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" => "credits",
            "label" => "Image credits",
            "type" => "textBox",
            "maxLength" => 50,
            "multiLanguage" => false,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:50",
        ),
        array(
            "name" => "caption",
            "label" => "Caption",
            "type" => "editor",
            "multiLanguage" => true,
            "preValidation" => "trim|xss_clean",
            "validation" => "max:255",
            "info" => "Max 255 chars",
        ),
        array(
            "name" => "mediaItem",
            "label" => "Image",
            "type" => "mediaPicker",
            "multiLanguage" => false,
            "mediaType" => "image",
            "placement" => "sidebar",
            "multiple" => false,
            "minSize" => "1",
        )
    ),
    "actions" => array(
        "insert", "edit", "delete"
    )
);
