Created
November 28, 2015 09:13
-
-
Save anonymous/74440d247b5ea8ef768e to your computer and use it in GitHub Desktop.
Erweiterung von pages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Table structure for table 'pages' | |
# | |
CREATE TABLE pages ( | |
customer varchar(255) DEFAULT '' NOT NULL | |
); | |
# | |
# Table structure for table 'tx_vendor_domain_model_customer' | |
# | |
CREATE TABLE tx_vendor_domain_model_customer ( | |
uid int(11) NOT NULL auto_increment, | |
pid int(11) DEFAULT '0' NOT NULL, | |
name varchar(255) DEFAULT '' NOT NULL, | |
description text, | |
link varchar(255) DEFAULT '' NOT NULL, | |
images int(11) unsigned DEFAULT '0' NOT NULL, | |
tstamp int(11) unsigned DEFAULT '0' NOT NULL, | |
crdate int(11) unsigned DEFAULT '0' NOT NULL, | |
cruser_id int(11) unsigned DEFAULT '0' NOT NULL, | |
deleted tinyint(4) unsigned DEFAULT '0' NOT NULL, | |
hidden tinyint(4) unsigned DEFAULT '0' NOT NULL, | |
starttime int(11) unsigned DEFAULT '0' NOT NULL, | |
endtime int(11) unsigned DEFAULT '0' NOT NULL, | |
t3ver_oid int(11) DEFAULT '0' NOT NULL, | |
t3ver_id int(11) DEFAULT '0' NOT NULL, | |
t3ver_wsid int(11) DEFAULT '0' NOT NULL, | |
t3ver_label varchar(255) DEFAULT '' NOT NULL, | |
t3ver_state tinyint(4) DEFAULT '0' NOT NULL, | |
t3ver_stage int(11) DEFAULT '0' NOT NULL, | |
t3ver_count int(11) DEFAULT '0' NOT NULL, | |
t3ver_tstamp int(11) DEFAULT '0' NOT NULL, | |
t3ver_move_id int(11) DEFAULT '0' NOT NULL, | |
sys_language_uid int(11) DEFAULT '0' NOT NULL, | |
l10n_parent int(11) DEFAULT '0' NOT NULL, | |
l10n_diffsource mediumblob, | |
PRIMARY KEY (uid), | |
KEY parent (pid), | |
KEY t3ver_oid (t3ver_oid,t3ver_wsid), | |
KEY language (l10n_parent,sys_language_uid) | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TCA/Overrides | |
<?php | |
defined('TYPO3_MODE') or die(); | |
$customer = [ | |
'customer' => [ | |
'exclude' => 1, | |
'label' => 'Customer', | |
'config' => [ | |
'type' => 'select', | |
'renderType' => 'selectMultipleSideBySide', | |
'size' => 10, | |
'maxitems' => 100, | |
'items' => [], | |
'enableMultiSelectFilterTextfield' => true, | |
'foreign_table' => 'tx_vendor_domain_model_customer', | |
'foreign_table_where' => 'AND (sys_language_uid=CAST(\'###REC_FIELD_sys_language_uid###\' AS UNSIGNED) OR sys_language_uid = \'-1\') AND tx_vendor_domain_model_customer.deleted = 0 AND tx_vendor_domain_model_customer.hidden = 0' | |
] | |
] | |
]; | |
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns( 'pages', $customer ); | |
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes( 'pages', '--div--;Customer,customer', 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment