Project

General

Profile

Bug #105578 » tx_solutions_domain_model_reference.php

Ruben Zielke, 2024-11-12 09:09

 
<?php
return [
'ctrl' => [
'title' => 'LLL:EXT:solutions/Resources/Private/Language/locallang_db.xlf:tx_solutions_domain_model_reference',
'label' => 'title',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'versioningWS' => true,
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l10n_parent',
'transOrigDiffSourceField' => 'l10n_diffsource',
'prependAtCopy' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.prependAtCopy',
'hideAtCopy' => true,
'delete' => 'deleted',
'enablecolumns' => [
'disabled' => 'hidden',
'starttime' => 'starttime',
'endtime' => 'endtime',
],
'security' => [
'ignorePageTypeRestriction' => true,
],
'searchFields' => 'title,description',
'iconfile' => 'EXT:solutions/Resources/Public/Icons/tx_solutions_domain_model_reference.gif'
],
'types' => [
'1' => ['showitem' => '
--div--;General,
--palette--;;paletteGeneral,
--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:categories,
categories,
--div--;Products,
--palette--;;paletteProducts,
--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
--palette--;;paletteLanguage,
--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
--palette--;;paletteHidden,
--palette--;;paletteAccess,
'],
],
'columns' => [
'sys_language_uid' => [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
'config' => [
'type' => 'language',
],
],
'l10n_parent' => [
'displayCond' => 'FIELD:sys_language_uid:>:0',
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
'config' => [
'type' => 'select',
'renderType' => 'selectSingle',
'default' => 0,
'items' => [
['', 0],
],
'foreign_table' => 'tx_solutions_domain_model_product',
'foreign_table_where' => 'AND {#tx_solutions_domain_model_product}.{#pid}=###CURRENT_PID### AND {#tx_solutions_domain_model_product}.{#sys_language_uid} IN (-1,0)',
],
],
'l10n_diffsource' => [
'config' => [
'type' => 'passthrough',
],
],
'hidden' => [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.visible',
'config' => [
'type' => 'check',
'renderType' => 'checkboxToggle',
'items' => [
[
0 => '',
1 => '',
'invertStateDisplay' => true
]
],
],
],
'starttime' => [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
'config' => [
'type' => 'input',
'renderType' => 'inputDateTime',
'eval' => 'datetime,int',
'default' => 0,
'behaviour' => [
'allowLanguageSynchronization' => true
]
],
],
'endtime' => [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
'config' => [
'type' => 'input',
'renderType' => 'inputDateTime',
'eval' => 'datetime,int',
'default' => 0,
'range' => [
'upper' => mktime(0, 0, 0, 1, 1, 2038)
],
'behaviour' => [
'allowLanguageSynchronization' => true
]
],
],
'title' => [
'exclude' => true,
'label' => 'LLL:EXT:solutions/Resources/Private/Language/locallang_db.xlf:tx_solutions_domain_model_reference.title',
'description' => 'LLL:EXT:solutions/Resources/Private/Language/locallang_db.xlf:tx_solutions_domain_model_reference.title.description',
'config' => [
'type' => 'input',
'size' => 30,
'eval' => 'trim',
'default' => ''
],
],
'path_segment' => [
'exclude' => true,
'label' => 'slug',
'description' => 'field description',
'config' => [
'type' => 'slug',
'generatorOptions' => [
'fields' => [
'title',
],
'fieldSeparator' => '/',
'prefixParentPageSlug' => true,
'replacements' => [
'/' => '',
],
],
'fallbackCharacter' => '-',
'eval' => 'uniqueInSite',
'default' => '',
],
],
'description' => [
'exclude' => true,
'label' => 'LLL:EXT:solutions/Resources/Private/Language/locallang_db.xlf:tx_solutions_domain_model_reference.description',
'description' => 'LLL:EXT:solutions/Resources/Private/Language/locallang_db.xlf:tx_solutions_domain_model_reference.description.description',
'config' => [
'type' => 'text',
'enableRichtext' => true,
'richtextConfiguration' => 'default',
'fieldControl' => [
'fullScreenRichtext' => [
'disabled' => false,
],
],
'cols' => 40,
'rows' => 15,
'eval' => 'trim',
],
],
'categories' => [
'exclude' => true,
'label' => 'categories',
'l10n_mode' => 'exclude',
'config' => [
'type' => 'category',
],
],
'products' => [
'exclude' => true,
'label' => 'LLL:EXT:solutions/Resources/Private/Language/locallang_db.xlf:tx_solutions_domain_model_reference.products',
'description' => 'LLL:EXT:solutions/Resources/Private/Language/locallang_db.xlf:tx_solutions_domain_model_reference.products.description',
'l10n_mode' => 'exclude',
'config' => [
'type' => 'select',
'renderType' => 'selectMultipleSideBySide',
'allowed' => 'tx_solutions_domain_model_product',
'foreign_table' => 'tx_solutions_domain_model_product',
'foreign_table_where' => '{#tx_solutions_domain_model_product}.{#sys_language_uid} IN (-1,###REC_FIELD_sys_language_uid###)',
'foreign_sortby' => 'sorting',
'MM_opposite_field' => 'references',
'MM' => 'tx_solutions_domain_model_product_reference_mm',
'minitems' => 0,
'maxitems' => 99,
'appearance' => [
'collapseAll' => 1,
'expandSingle' => 1,
'levelLinksPosition' => 'bottom',
'useSortable' => 1,
'showPossibleLocalizationRecords' => 1,
'showAllLocalizationLink' => 1,
'showSynchronizationLink' => 1,
'enabledControls' => [
'info' => false,
],
],
'behaviour' => [
'allowLanguageSynchronization' => false,
],
'fieldControl' => [
'editPopup' => [
'disabled' => false,
],
'addRecord' => [
'disabled' => false,
],
'listModule' => [
'disabled' => false,
],
],
],
],
],
'palettes' => [
'paletteGeneral' => [
'showitem' => '
title, --linebreak--,
path_segment, --linebreak--,
description,
'
],
'paletteProducts' => [
'showitem' => '
products,
'
],
'paletteAccess' => [
'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.access',
'showitem' => '
hidden, --linebreak--,
starttime, endtime
',
],
'paletteLanguage' => [
'showitem' => '
sys_language_uid, l10n_parent, l10n_diffsource,
',
],
],
];
(1-1/2)