<?php
return array(
    "type" => "contacts_template_conf",
    "model" => "ContactsTemplateConf",
    "label" => "Contacts Template Configurations",
    "label_singular" => "Contacts Template Configurations",
    "parent" => array(
        "field" => "entry_id",
        "contentType" => "page"
    ),
    "group" => "none",
    "template" => false,
    "order" => false,
    "websites" => array(1, 2),
    "shareable" => "none",
    "fields" => array(
        array(
            "name" => "main_contact_id",
            "label" => "contact",
            "type" => "selectBox",
            "contentType" => "contact",
            "labelField" => "name",
            "dropdownSortField" => "contacts.name",
            "validation" => "nullable|integer|min:1",
        ),
        array(
            "name" => "recommend",
            "label" => "SPG Also Recommended",
            "type" => "multiplePicker",
            "websiteFiltered" => true,
            "longList" => true,
            "objectTypes" => array("project", "solution", "case_study", "news", "content_snippet"),
            "order" => true
        ),
        array(
            "name" => "relatedItems",
            "label" => "CF Related Items",
            "type" => "singlePicker",
            "objectType" => "cf_related_item",
            "pivotTable" => "contacts_template_cf_related_items",
            "order" => true,
            "maxSize" => 10
        ),
    ),
    "actions" => array(
        "insert", "edit", "delete"
    )
);
