TYPO3.CMS 6.2 Extension entwickeln - Backend
Aus Vosp.info
Version vom 26. März 2015, 10:50 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</_source>
</trans-unit>
<trans-unit id="auth" xml:space="preserve">
<_source>Eine Backend Seite zum gestalten</_source>
</trans-unit>
</body>
</file>
</xliff>
- Achtung: _source muss natürlich source heißen!!!
Resources/Private/Layouts/Default.html
<f:be.container>
<div id="typo3-docheader">
<div class="typo3-docheader-functions"> </div>
<div class="typo3-docheader-buttons"> </div>
</div>
<div id="typo3-docbody">
<div id="typo3-mod-help-about-index-php-outer">
<f:render section="Content" />
</div>
</div>
</f:be.container>
Resources/Private/Partials/Auth.html
<div class="typo3-mod-help-about-index-php-inner">
<h1>
<f:translate key="LLL:EXT:extensionname/Resources/Private/Language/locallang.xlf:auth" />
</h1>
<p>
<a href=""></a>
</p>
</div>
Resources/Private/Templates/Auth/Index.html
<f:layout name="Default" />
<f:section name="Content">
<f:render partial="Auth" arguments="{_all}" />
</f:section>
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>