|
<?php
|
|
return [
|
|
'ctrl' => [
|
|
'title' => 'LLL:EXT:solutions/Resources/Private/Language/locallang_db.xlf:tx_solutions_domain_model_product',
|
|
'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,subtitle,short,teaser,description',
|
|
'iconfile' => 'EXT:solutions/Resources/Public/Icons/tx_solutions_domain_model_product.gif'
|
|
],
|
|
'types' => [
|
|
'1' => ['showitem' => '
|
|
--div--;General,
|
|
--palette--;;paletteGeneral,
|
|
--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:categories,
|
|
categories,
|
|
--div--;Content,
|
|
--palette--;;paletteContent,
|
|
--div--;Related,
|
|
--palette--;;paletteRelated,
|
|
--div--;Benefits,
|
|
--palette--;;paletteReferences,
|
|
--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_product.title',
|
|
'description' => 'LLL:EXT:solutions/Resources/Private/Language/locallang_db.xlf:tx_solutions_domain_model_product.title.description',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'size' => 30,
|
|
'eval' => 'trim',
|
|
'default' => ''
|
|
],
|
|
],
|
|
'keywords' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:solutions/Resources/Private/Language/locallang_db.xlf:tx_solutions_domain_model_product.keywords',
|
|
'description' => 'LLL:EXT:solutions/Resources/Private/Language/locallang_db.xlf:tx_solutions_domain_model_product.keywords.description',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'size' => 30,
|
|
'eval' => 'trim',
|
|
'default' => ''
|
|
],
|
|
],
|
|
'path_segment' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:solutions/Resources/Private/Language/locallang_db.xlf:tx_solutions_domain_model_product.path_segment',
|
|
'description' => 'LLL:EXT:solutions/Resources/Private/Language/locallang_db.xlf:tx_solutions_domain_model_product.path_segment.description',
|
|
'config' => [
|
|
'type' => 'slug',
|
|
'generatorOptions' => [
|
|
'fields' => [
|
|
'title',
|
|
],
|
|
'fieldSeparator' => '/',
|
|
'prefixParentPageSlug' => true,
|
|
'replacements' => [
|
|
'/' => '',
|
|
'[-?]' => '',
|
|
'[-!]' => '',
|
|
'[ !]' => '',
|
|
],
|
|
],
|
|
'fallbackCharacter' => '-',
|
|
'eval' => 'uniqueInSite',
|
|
'default' => '',
|
|
],
|
|
],
|
|
'subtitle' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:solutions/Resources/Private/Language/locallang_db.xlf:tx_solutions_domain_model_product.subtitle',
|
|
'description' => 'LLL:EXT:solutions/Resources/Private/Language/locallang_db.xlf:tx_solutions_domain_model_product.subtitle.description',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'size' => 30,
|
|
'eval' => 'trim',
|
|
'default' => ''
|
|
],
|
|
],
|
|
'short' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:solutions/Resources/Private/Language/locallang_db.xlf:tx_solutions_domain_model_product.short',
|
|
'description' => 'LLL:EXT:solutions/Resources/Private/Language/locallang_db.xlf:tx_solutions_domain_model_product.short.description',
|
|
'config' => [
|
|
'type' => 'text',
|
|
'cols' => 40,
|
|
'rows' => 5,
|
|
'eval' => 'trim',
|
|
'default' => ''
|
|
]
|
|
],
|
|
'teaser' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:solutions/Resources/Private/Language/locallang_db.xlf:tx_solutions_domain_model_product.teaser',
|
|
'description' => 'LLL:EXT:solutions/Resources/Private/Language/locallang_db.xlf:tx_solutions_domain_model_product.teaser.description',
|
|
'config' => [
|
|
'type' => 'text',
|
|
'cols' => 40,
|
|
'rows' => 15,
|
|
'eval' => 'trim',
|
|
'default' => ''
|
|
],
|
|
],
|
|
'description' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:solutions/Resources/Private/Language/locallang_db.xlf:tx_solutions_domain_model_product.description',
|
|
'description' => 'LLL:EXT:solutions/Resources/Private/Language/locallang_db.xlf:tx_solutions_domain_model_product.description.description',
|
|
'config' => [
|
|
'type' => 'text',
|
|
'enableRichtext' => true,
|
|
'richtextConfiguration' => 'default',
|
|
'fieldControl' => [
|
|
'fullScreenRichtext' => [
|
|
'disabled' => false,
|
|
],
|
|
],
|
|
'cols' => 40,
|
|
'rows' => 15,
|
|
'eval' => 'trim',
|
|
],
|
|
],
|
|
'categories' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:solutions/Resources/Private/Language/locallang_db.xlf:tx_solutions_domain_model_product.categories',
|
|
'description' => 'LLL:EXT:solutions/Resources/Private/Language/locallang_db.xlf:tx_solutions_domain_model_product.categories.description',
|
|
'l10n_mode' => 'exclude',
|
|
'config' => [
|
|
'type' => 'category',
|
|
],
|
|
],
|
|
'content_elements' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:solutions/Resources/Private/Language/locallang_db.xlf:tx_solutions_domain_model_product.content_elements',
|
|
'description' => 'LLL:EXT:solutions/Resources/Private/Language/locallang_db.xlf:tx_solutions_domain_model_product.content_elements.description',
|
|
'config' => [
|
|
'type' => 'inline',
|
|
'allowed' => 'tt_content',
|
|
'foreign_table' => 'tt_content',
|
|
'foreign_sortby' => 'sorting',
|
|
'foreign_field' => 'parentid',
|
|
'foreign_table_field' => 'parenttable',
|
|
'foreign_match_fields' => [
|
|
'role' => 'product_content_elements',
|
|
],
|
|
'minitems' => 0,
|
|
'maxitems' => 99,
|
|
'appearance' => [
|
|
'collapseAll' => 1,
|
|
'expandSingle' => 1,
|
|
'levelLinksPosition' => 'bottom',
|
|
'useSortable' => 1,
|
|
'showPossibleLocalizationRecords' => 1,
|
|
'showAllLocalizationLink' => 1,
|
|
'showSynchronizationLink' => 1,
|
|
'enabledControls' => [
|
|
'info' => false,
|
|
],
|
|
],
|
|
'behaviour' => [
|
|
'allowLanguageSynchronization' => true,
|
|
],
|
|
],
|
|
],
|
|
'references_header' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:solutions/Resources/Private/Language/locallang_db.xlf:tx_solutions_domain_model_product.references_header',
|
|
'description' => 'LLL:EXT:solutions/Resources/Private/Language/locallang_db.xlf:tx_solutions_domain_model_product.references_header.description',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'size' => 30,
|
|
'eval' => 'trim',
|
|
'default' => ''
|
|
]
|
|
],
|
|
'references_description' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:solutions/Resources/Private/Language/locallang_db.xlf:tx_solutions_domain_model_product.references_description',
|
|
'description' => 'LLL:EXT:solutions/Resources/Private/Language/locallang_db.xlf:tx_solutions_domain_model_product.references_description.description',
|
|
'config' => [
|
|
'type' => 'text',
|
|
'cols' => 40,
|
|
'rows' => 5,
|
|
'eval' => 'trim',
|
|
'default' => ''
|
|
]
|
|
],
|
|
'references' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:solutions/Resources/Private/Language/locallang_db.xlf:tx_solutions_domain_model_product.references',
|
|
'description' => 'LLL:EXT:solutions/Resources/Private/Language/locallang_db.xlf:tx_solutions_domain_model_product.references.description',
|
|
'l10n_mode' => 'exclude',
|
|
'config' => [
|
|
'type' => 'select',
|
|
'renderType' => 'selectMultipleSideBySide',
|
|
'allowed' => 'tx_solutions_domain_model_reference',
|
|
'foreign_table' => 'tx_solutions_domain_model_reference',
|
|
'foreign_table_where' => '{#tx_solutions_domain_model_reference}.{#sys_language_uid} IN (-1,###REC_FIELD_sys_language_uid###)',
|
|
'foreign_sortby' => 'sorting',
|
|
'MM' => 'tx_solutions_domain_model_product_reference_mm',
|
|
'MM_oppositeUsage' => [
|
|
'tx_solutions_domain_model_reference' => [
|
|
0 => 'products'
|
|
],
|
|
],
|
|
|
|
'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, keywords, --linebreak--,
|
|
path_segment, --linebreak--,
|
|
subtitle, --linebreak--,
|
|
teaser, --linebreak--,
|
|
short, --linebreak--,
|
|
description,
|
|
'
|
|
],
|
|
'paletteContent' => [
|
|
'showitem' => '
|
|
content_elements, --linebreak--,
|
|
'
|
|
],
|
|
'paletteReferences' => [
|
|
'showitem' => '
|
|
references_header, --linebreak--,
|
|
references_description, --linebreak--,
|
|
references,
|
|
'
|
|
],
|
|
'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,
|
|
',
|
|
],
|
|
],
|
|
];
|