<?php

return array(
    "type" => "slideshow",
    "model" => "Slideshow",
    "label" => "slideshow",
    "label_singular" => "slideshow",
    "template" => false,
    "hierarchic" => false,
    "group" => "general",
    "order" => true,
    //  "showSlug" => true,
    "showUri" => false,
    "search" => array(),
    "fields" => array(           
        array(
            "name" => "title",
            "label" => "title",
            "type" => "textBox",
            "maxLength" => 150,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "required|max:100",
            "inList" => true,
            "search" => true,
            "sort" => true
        ),
        array(
            "name" => "description",
            "label" => "description",
            "type" => "textArea",
            "maxLength" => 500,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "required|max:500"
        ),
        array(
            "name" => "photographer",
            "label" => "photographer",
            "type" => "textBox",
            "maxLength" => 100,
            "multiLanguage" => false,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "required|max:100",
            "inList" => false,
            "search" => false,
            "sort" => false
        ),
        array(
            "name" => "cases",
            "label" => "cases",
            "type" => "textBox",
            "maxLength" => 6,
            "multiLanguage" => false,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "integer",
            "inList" => false,
            "search" => false,
            "sort" => false
        ),
        array(
            "name" => "date",
            "label" => "Date",
            "type" => "textBox",
            "maxLength" => 100,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "required|max:50",
            "inList" => false,
            "search" => false,
            "sort" => false
        ),
        array(
            "name" => "image",
            "label" => "Image",
            "type" => "mediaPicker",
            "multiLanguage" => false,
            "mediaType" => "image",
            "placement" => "sidebar",
            "multiple" => false,
            "minSize" => "1",
            "thumbnailSizes" => array(
                array("type" => "fit", "name" => "852x567", "width" => 852, "height" => 567),
                array("type" => "fit", "name" => "1500x1000", "width" => 1500, "height" => 1000),
                array("type" => "fit", "name" => "768x512", "width" => 768, "height" => 512),
            ),
        ),

    ),
    "actions" => array(
        "insert", "edit", "delete", "order"
    ),
);

