<?php

    return [
        "type"           => "webLinks",
        "model"          => App\Models\WebLink::class,
        "label"          => "General links",
        "label_singular" => "General link",
        "template"       => FALSE,
        "hierarchic"     => FALSE,
        "group"          => "general",
        "order"          => FALSE,
        "showSlug"       => TRUE,
        "showUri"        => FALSE,
        
        "fields"         => [
            [
                "name"          => "title",
                "label"         => "title",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:150",
                "inList"        => TRUE,
                "search"        => TRUE,
                "sort"          => TRUE
            ],
            [
                "name"          => "block_title",
                "label"         => "Frontend title",
                "type"          => "editor",
                "maxLength"     => 500,
                "multiLanguage" => TRUE,
                "preValidation" => "xss_clean",
                "validation"    => "max:150",
                "inList"        => TRUE,
                "search"        => TRUE,
                "sort"          => TRUE
            ],
            [
                "name"          => "data",
                "label"         => "Link",
                "type"          => "link",
                "maxLabel"     => 100,
                "multiLanguage" => true,
                "objectTypes"   => [
                    "page", "product"
                ],
                "required"      => false,
            ]
        ],
        "actions"        => [
            "insert", "edit", "delete"
        ]
    ];
