[ 'title' => 'VITEC Search Card', 'label' => 'title', 'label_alt' => 'keywords', 'label_alt_force' => true, 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'delete' => 'deleted', 'default_sortby' => 'priority DESC, title ASC', 'enablecolumns' => [ 'disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime', ], 'searchFields' => 'title,keywords,card_title,teaser', 'iconfile' => 'EXT:vitec/Resources/Public/Icons/vitec-search-card.svg', 'security' => [ 'ignorePageTypeRestriction' => true, ], ], 'types' => [ '1' => [ 'showitem' => ' --div--;Trigger, title, keywords, priority, --div--;Card content, record, card_title, teaser, image, --palette--;;link, --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access, hidden, starttime, endtime', ], ], 'palettes' => [ 'link' => [ 'label' => 'Button', 'showitem' => 'link, link_label', ], ], 'columns' => [ 'title' => [ 'label' => 'Internal name', 'description' => 'Only for the backend list, never shown on the website.', 'config' => [ 'type' => 'input', 'size' => 40, 'max' => 255, 'required' => true, ], ], 'keywords' => [ 'label' => 'Keywords', 'description' => 'Comma or line separated. The card appears when the search contains one of these terms (whole words, case-insensitive; Solr synonyms count too). Example: control room, soc, noc, command centre', 'config' => [ 'type' => 'text', 'rows' => 3, 'cols' => 60, 'required' => true, ], ], 'priority' => [ 'label' => 'Priority', 'description' => 'At most 3 cards are shown; higher numbers win.', 'config' => [ 'type' => 'number', 'default' => 0, 'range' => ['lower' => -100, 'upper' => 100], ], ], 'record' => [ 'label' => 'Show this record', 'description' => 'Title, teaser, image and link come from the record (as in the search results). Leave empty for a free card. A record that is hidden or not in the search index is skipped unless the fields below fill the gap.', 'config' => [ 'type' => 'group', 'allowed' => 'pages,tx_vitec_domain_model_product,tx_vitec_domain_model_usecase,tx_vitec_domain_model_solution,tx_vitec_domain_model_market,tx_news_domain_model_news', 'size' => 1, 'maxitems' => 1, 'minitems' => 0, ], ], 'card_title' => [ 'label' => 'Card title', 'description' => 'Required for free cards; overrides the record title otherwise.', 'config' => [ 'type' => 'input', 'size' => 40, 'max' => 255, ], ], 'teaser' => [ 'label' => 'Teaser', 'description' => 'Plain text, about 160 characters. Overrides the record teaser.', 'config' => [ 'type' => 'text', 'rows' => 3, 'cols' => 60, 'max' => 400, ], ], 'image' => [ 'label' => 'Image', 'description' => 'Overrides the record image. Delivered as a 640px tile like the result images.', 'config' => [ 'type' => 'file', 'maxitems' => 1, 'allowed' => 'common-image-types', ], ], 'link' => [ 'label' => 'Link', 'description' => 'Required for free cards; overrides the record URL otherwise.', 'config' => [ 'type' => 'link', 'allowedTypes' => ['page', 'url', 'record', 'file'], ], ], 'link_label' => [ 'label' => 'Button label', 'description' => 'Empty = the frontend default (e.g. "Learn more").', 'config' => [ 'type' => 'input', 'size' => 20, 'max' => 80, ], ], ], ];