TYPO3.CMS 6.2 Extension entwickeln - Backend
Aus Vosp.info
Version vom 26. März 2015, 10:42 Uhr von F (Diskussion | Beiträge) (→eine blanke Backend Seite erstellen)
Inhaltsverzeichnis
eine blanke Backend Seite erstellen
Classes/Controller/AuthController.php
<?php
namespace Anc\Ncimmoscout24\Controller;
/**
* Module 'User / Group Overview' for the 'tc_beuser' extension.
*
* @author netz.coop eG <kontkat[at]netz.coop>
* @package TYPO3
* @subpackage
*/
class AuthController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController {
function indexAction() {
}
}
Resources/Private/Language/locallang.xlf
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.0">
<file source-language="en" datatype="plaintext" original="messages" date="2015-03-24T18:35:34Z" product-name="product name">
<header/>
<body>
<trans-unit id="title" xml:space="preserve">
<source>link name linke Spalte
</trans-unit> <trans-unit id="auth" xml:space="preserve">
Eine Backend Seite zum gestalten
</trans-unit>
</body> </file> </xliff> </source>
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>