TYPO3.CMS 6.2 Extension entwickeln - Backend
Aus Vosp.info
Version vom 24. März 2015, 00:52 Uhr von F (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „== be_users um Spalte erweitern == === Configuration/TCA/Overrides/be_users.php === <source lang="php"> <?php if (!defined('TYPO3_MODE')) { die ('Access denied.…“)
Inhaltsverzeichnis
be_users um Spalte erweitern
Configuration/TCA/Overrides/be_users.php
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
// fe_users modified
$be_users_cols = array(
'nct3_is24_username' => array(
'label' => 'LLL:EXT:nct3_is24/locallang_tca.xml:be_users.nct3_is24_username',
'exclude' => '1',
'config' => array(
'type' => 'input',
'size' => '40',
'eval' => 'trim,nospace,unique,alphanum_x',
'max' => '80'
)
)
);
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('be_users', $be_users_cols);
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCATypes('be_users', '--div--;nct3_is24,nct3_is24_username');
ext_tables.sql
CREATE TABLE be_users (
nct3_is24_username varchar(255) DEFAULT '' NOT NULL
);
locallang_tca.xml
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3locallang>
<meta type="array">
<description>Labels for the Direct Mail tables</description>
<type>database</type>
<csh_table></csh_table>
<fileId>EXT:direct_mail/locallang_tca.xml</fileId>
<labelContext type="array">
</labelContext>
</meta>
<data type="array">
<languageKey index="default" type="array">
<label index="be_users.nct3_is24_username">Immoscout Benutzername</label>
</languageKey>
</data>
</T3locallang>