Skip to content
Snippets Groups Projects
Commit 5c568356 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Correction TCA & Table Name

parent 98d7e345
No related branches found
No related tags found
1 merge request!1Feature sg mail
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
return [
'ctrl' => [
'title' => 'LLL:EXT:sg_mail/Resources/Private/Language/locallang_db.xlf:sg_mail_domain_model_mail',
'label' => 'Mail Queue',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'dividers2tabs' => TRUE,
'versioningWS' => 2,
'versioning_followPages' => TRUE,
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l10n_parent',
'transOrigDiffSourceField' => 'l10n_diffsource',
'delete' => 'deleted',
'enablecolumns' => [
'disabled' => 'hidden',
'starttime' => 'starttime',
'endtime' => 'endtime',
],
'searchFields' => '',
'iconfile' => 'EXT:sg_mail/Resources/Public/Icons/ModuleIcon.svg'
],
'interface' => [
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, to_address, from_address',
],
'types' => [
'1' => ['showitem' => 'to_address, from_address;;2;;;;5;;;;3;;;4;;, --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access, hidden;;1;;, sys_language_uid;;6;;,'],
],
'palettes' => [
'1' => ['showitem' => 'to_address, from_address'],
],
'columns' => [
'sys_language_uid' => [
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
'config' => [
'type' => 'select',
'foreign_table' => 'sys_language',
'foreign_table_where' => 'ORDER BY sys_language.title',
'items' => [
['LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1],
['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0]
],
],
],
'l10n_parent' => [
'displayCond' => 'FIELD:sys_language_uid:>:0',
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
'config' => [
'type' => 'select',
'items' => [
['', 0],
],
'foreign_table' => 'sg_mail_domain_model_mail',
'foreign_table_where' => 'AND sg_mail_domain_model_mail.pid=###CURRENT_PID### AND sg_mail_domain_model_mail.sys_language_uid IN (-1,0)',
],
],
'l10n_diffsource' => [
'config' => [
'type' => 'passthrough',
],
],
't3ver_label' => [
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
'config' => [
'type' => 'input',
'size' => 30,
'max' => 255,
]
],
'hidden' => [
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
'config' => [
'type' => 'check',
],
],
'starttime' => [
'exclude' => 1,
'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
'config' => [
'type' => 'input',
'size' => 13,
'max' => 20,
'eval' => 'datetime',
'checkbox' => 0,
'default' => 0,
'range' => [
'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))
],
],
],
'endtime' => [
'exclude' => 1,
'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
'config' => [
'type' => 'input',
'size' => 13,
'max' => 20,
'eval' => 'datetime',
'checkbox' => 0,
'default' => 0,
'range' => [
'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))
],
],
],
'to_address' => [
'exclude' => 1,
'label' => 'LLL:EXT:sg_mail/Resources/Private/Language/locallang_db.xlf:sg_mail_domain_model_mail.to_address',
'config' => [
'type' => 'input',
'size' => 60,
'eval' => 'trim'
],
],
'from_address' => [
'exclude' => 1,
'label' => 'LLL:EXT:sg_mail/Resources/Private/Language/locallang_db.xlf:sg_mail_domain_model_mail.from_address',
'config' => [
'type' => 'text',
'cols' => 40,
'rows' => 8,
'eval' => 'trim'
]
],
],
];
<?php
/***************************************************************
* Copyright notice
*
* (c] sgalinski Internet Services (https://www.sgalinski.de]
*
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option] any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
return [
'ctrl' => [
'title' => 'LLL:EXT:sg_mail/Resources/Private/Language/locallang_db.xlf:tx_sgmail_domain_model_mail',
'label' => 'name',
'label_alt' => 'message',
'label_alt_force' => TRUE,
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'searchFields' => 'to_address, from_address',
'dividers2tabs' => TRUE,
'delete' => 'deleted',
'enablecolumns' => [
'disabled' => 'hidden',
],
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('sg_mail') .
'Resources/Public/Icons/ModuleIcon.svg'
],
'interface' => [
'showRecordFieldList' => 'hidden, to_address, from_address',
],
'types' => [
'1' => [
'showitem' => 'hidden;;1, to_address, from_address,
--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,starttime, endtime'
],
],
'columns' => [
'pid' => [
'exclude' => FALSE,
'label' => 'PID',
'config' => [
'type' => 'none',
]
],
'crdate' => [
'exclude' => FALSE,
'label' => 'LLL:EXT:sg_mail/Resources/Private/Language/locallang_db.xlf:general.crdate',
'config' => [
'type' => 'input'
]
],
'hidden' => [
'exclude' => TRUE,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
'config' => [
'type' => 'check',
],
],
'to_address' => [
'exclude' => FALSE,
'label' => 'LLL:EXT:sg_mail/Resources/Private/Language/locallang_db.xlf:tx_sgmail_domain_model_mail.to_address',
'config' => [
'type' => 'input',
'size' => 30,
'eval' => 'trim'
]
],
'from_address' => [
'exclude' => FALSE,
'label' => 'LLL:EXT:sg_mail/Resources/Private/Language/locallang_db.xlf:tx_sgmail_domain_model_mail.from_address',
'config' => [
'type' => 'text',
'cols' => 30,
'rows' => 10
]
]
]
];
......@@ -9,12 +9,12 @@
<authorEmail>torsten@sgalinski.de</authorEmail>
</header>
<body>
<trans-unit id="sg_mail_domain_model_mail.from_address">
<trans-unit id="tx_sgmail_domain_model_mail.from_address">
<source>From</source>
</trans-unit>
<trans-unit id="sg_mail_domain_model_mail.to_address">
<trans-unit id="tx_sgmail_domain_model_mail.to_address">
<source>To</source>
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
</xliff>
#
# Table structure for table 'sg_mail_domain_model_mail'
# Table structure for table 'tx_sgmail_domain_model_mail'
#
CREATE TABLE sg_mail_domain_model_mail (
CREATE TABLE tx_sgmail_domain_model_mail (
uid int(11) NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment