Zum Inhalt springen

Save & New - Button

Erstellt am 7. November 2006 · 6 Antworten · letzte Antwort am 10. November 2006

Tags: Frage

Stoffel ·

Hallo zusammen,

ich habe eine Extension mit dem Kickstarter angelegt und eine neue Tabelle hinzugefügt, bei welcher ich neue Einträge mit dem "Safe & New"-Button schnell im Backend anlegen möchte. Dummerweise kommt jedes Mal, wenn ich von einem in das nächste Eingabefeld springe immer die Popup-Warnung:

Diese Änderung beeinflußt die zur Verfügung stehenden Eingabefelder. Wollen Sie gemachte Änderungen sichern und die Anzeige aktualisieren?

Wie kann ich diese nervige Warnmeldung unterbinden???

Danke für Eure Hilfe!

steffenk ·

naja, irgend ein Eintrag ist falsch. Das Speichern&New ist ein Eintrag in der ext_localconf und von der Art

t3lib_extMgm::addUserTSConfig('
	options.saveDocNew.tabellenname=1
');

und dürfte dafür nicht verantwortlich sein.

Am einfachsten Du postest mal die 3 Dateien
tca.php
ext_tables.php
ext_localconf.php

Stoffel ·

OK, hier die Inhalte der 3 Dateien:

1. ext_localconf.php:

<?php
if (!defined ('TYPO3_MODE')) 	die ('Access denied.');

  ## Extending TypoScript from static template uid=43 to set up userdefined tag:
t3lib_extMgm::addTypoScript($_EXTKEY,'editorcfg','
	tt_content.CSS_editor.ch.user_prodselect_pi1 = < plugin.user_prodselect_pi1.CSS_editor
',43);


t3lib_extMgm::addPItoST43($_EXTKEY,'pi1/class.user_prodselect_pi1.php','_pi1','list_type',0);

t3lib_extMgm::addUserTSConfig('
	options.saveDocNew.user_prodselect_material=1
');
t3lib_extMgm::addUserTSConfig('
	options.saveDocNew.user_prodselect_branche=1
');
?>

2. tca.php

<?php
if (!defined ('TYPO3_MODE')) 	die ('Access denied.');

$TCA["user_prodselect_material"] = Array (
	"ctrl" => $TCA["user_prodselect_material"]["ctrl"],
	"interface" => Array (
		"showRecordFieldList" => "material_l0,material_l1,material_l2,material_l3"
	),
	"feInterface" => $TCA["user_prodselect_material"]["feInterface"],
	"columns" => Array (
		"material_l0" => Array (		
			"exclude" => 1,		
			"label" => "LLL:EXT:user_prodselect/locallang_db.xml:user_prodselect_material.material_l0",		
			"config" => Array (
				"type" => "input",	
				"size" => "30",
			)
		),
		"material_l1" => Array (		
			"exclude" => 1,		
			"label" => "LLL:EXT:user_prodselect/locallang_db.xml:user_prodselect_material.material_l1",		
			"config" => Array (
				"type" => "input",	
				"size" => "30",
			)
		),
		"material_l2" => Array (		
			"exclude" => 1,		
			"label" => "LLL:EXT:user_prodselect/locallang_db.xml:user_prodselect_material.material_l2",		
			"config" => Array (
				"type" => "input",	
				"size" => "30",
			)
		),
		"material_l3" => Array (		
			"exclude" => 1,		
			"label" => "LLL:EXT:user_prodselect/locallang_db.xml:user_prodselect_material.material_l3",		
			"config" => Array (
				"type" => "input",	
				"size" => "30",
			)
		),
	),
	"types" => Array (
		"0" => Array("showitem" => "material_l0;;;;1-1-1, material_l1, material_l2, material_l3")
	),
	"palettes" => Array (
		"1" => Array("showitem" => "")
	)
);



$TCA["user_prodselect_branche"] = Array (
	"ctrl" => $TCA["user_prodselect_branche"]["ctrl"],
	"interface" => Array (
		"showRecordFieldList" => "branche_l0,branche_l1,branche_l2,branche_l3"
	),
	"feInterface" => $TCA["user_prodselect_branche"]["feInterface"],
	"columns" => Array (
		"branche_l0" => Array (		
			"exclude" => 1,		
			"label" => "LLL:EXT:user_prodselect/locallang_db.xml:user_prodselect_branche.branche_l0",		
			"config" => Array (
				"type" => "input",	
				"size" => "30",
			)
		),
		"branche_l1" => Array (		
			"exclude" => 1,		
			"label" => "LLL:EXT:user_prodselect/locallang_db.xml:user_prodselect_branche.branche_l1",		
			"config" => Array (
				"type" => "input",	
				"size" => "30",
			)
		),
		"branche_l2" => Array (		
			"exclude" => 1,		
			"label" => "LLL:EXT:user_prodselect/locallang_db.xml:user_prodselect_branche.branche_l2",		
			"config" => Array (
				"type" => "input",	
				"size" => "30",
			)
		),
		"branche_l3" => Array (		
			"exclude" => 1,		
			"label" => "LLL:EXT:user_prodselect/locallang_db.xml:user_prodselect_branche.branche_l3",		
			"config" => Array (
				"type" => "input",	
				"size" => "30",
			)
		),
	),
	"types" => Array (
		"0" => Array("showitem" => "branche_l0;;;;1-1-1, branche_l1, branche_l2, branche_l3")
	),
	"palettes" => Array (
		"1" => Array("showitem" => "")
	)
);
?>

3. ext_tables:

<?php
if (!defined ('TYPO3_MODE')) 	die ('Access denied.');

t3lib_div::loadTCA('tt_content');
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY.'_pi1']='layout,select_key';


t3lib_extMgm::addPlugin(Array('LLL:EXT:user_prodselect/locallang_db.xml:tt_content.list_type_pi1', $_EXTKEY.'_pi1'),'list_type');


t3lib_extMgm::addStaticFile($_EXTKEY,"pi1/static/","Product Selector");


if (TYPO3_MODE=="BE")	$TBE_MODULES_EXT["xMOD_db_new_content_el"]["addElClasses"]["user_prodselect_pi1_wizicon"] = t3lib_extMgm::extPath($_EXTKEY).'pi1/class.user_prodselect_pi1_wizicon.php';


t3lib_extMgm::allowTableOnStandardPages("user_prodselect_material");

$TCA["user_prodselect_material"] = Array (
	"ctrl" => Array (
		'title' => 'LLL:EXT:user_prodselect/locallang_db.xml:user_prodselect_material',		
		'label' => 'material_l0',	
		'tstamp' => 'tstamp',
		'crdate' => 'crdate',
		'cruser_id' => 'cruser_id',
		'type' => 'material_l0',	
		"default_sortby" => "ORDER BY crdate",	
		"dynamicConfigFile" => t3lib_extMgm::extPath($_EXTKEY)."tca.php",
		"iconfile" => t3lib_extMgm::extRelPath($_EXTKEY)."icon_user_prodselect_material.gif",
	),
	"feInterface" => Array (
		"fe_admin_fieldList" => "material_l0, material_l1, material_l2, material_l3",
	)
);


t3lib_extMgm::allowTableOnStandardPages("user_prodselect_branche");

$TCA["user_prodselect_branche"] = Array (
	"ctrl" => Array (
		'title' => 'LLL:EXT:user_prodselect/locallang_db.xml:user_prodselect_branche',		
		'label' => 'branche_l0',	
		'tstamp' => 'tstamp',
		'crdate' => 'crdate',
		'cruser_id' => 'cruser_id',
		'type' => 'branche_l0',	
		"default_sortby" => "ORDER BY crdate",	
		"dynamicConfigFile" => t3lib_extMgm::extPath($_EXTKEY)."tca.php",
		"iconfile" => t3lib_extMgm::extRelPath($_EXTKEY)."icon_user_prodselect_branche.gif",
	),
	"feInterface" => Array (
		"fe_admin_fieldList" => "branche_l0, branche_l1, branche_l2, branche_l3",
	)
);

$tempColumns = Array (
	"user_prodselect_material1" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_material1",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_material2" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_material2",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_material3" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_material3",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_material4" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_material4",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_material5" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_material5",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_material6" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_material6",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_material7" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_material7",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_material8" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_material8",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_material9" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_material9",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_material10" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_material10",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_material11" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_material11",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_material12" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_material12",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_material13" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_material13",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_material14" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_material14",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_material15" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_material15",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_material16" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_material16",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_material17" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_material17",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_material18" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_material18",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_material19" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_material19",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_material20" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_material20",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_material21" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_material21",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_material22" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_material22",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_material23" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_material23",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_material24" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_material24",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_material25" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_material25",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_branche1" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_branche1",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_branche2" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_branche2",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_branche3" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_branche3",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_branche4" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_branche4",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_branche5" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_branche5",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_branche6" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_branche6",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_branche7" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_branche7",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_branche8" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_branche8",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_branche9" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_branche9",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_branche10" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_branche10",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_branche11" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_branche11",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_branche12" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_branche12",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_branche13" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_branche13",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_branche14" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_branche14",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_branche15" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_branche15",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_branche16" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_branche16",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_branche17" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_branche17",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_branche18" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_branche18",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_branche19" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_branche19",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_branche20" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_branche20",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_branche21" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_branche21",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_branche22" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_branche22",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_branche23" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_branche23",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_branche24" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_branche24",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_branche25" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_branche25",		
		"config" => Array (
			"type" => "input",
			"size" => "4",
			"max" => "4",
			"eval" => "int",
			"checkbox" => "0",
			"range" => Array (
				"upper" => "1000",
				"lower" => "10"
			),
			"default" => 0
		)
	),
	"user_prodselect_picture" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:user_prodselect/locallang_db.xml:pages.user_prodselect_picture",		
		"config" => Array (
			"type" => "input",	
			"size" => "30",
		)
	),
);


t3lib_div::loadTCA("pages");
t3lib_extMgm::addTCAcolumns("pages",$tempColumns,1);
t3lib_extMgm::addToAllTCAtypes("pages","user_prodselect_material1;;;;1-1-1, user_prodselect_material2, user_prodselect_material3, user_prodselect_material4, user_prodselect_material5, user_prodselect_material6, user_prodselect_material7, user_prodselect_material8, user_prodselect_material9, user_prodselect_material10, user_prodselect_material11, user_prodselect_material12, user_prodselect_material13, user_prodselect_material14, user_prodselect_material15, user_prodselect_material16, user_prodselect_material17, user_prodselect_material18, user_prodselect_material19, user_prodselect_material20, user_prodselect_material21, user_prodselect_material22, user_prodselect_material23, user_prodselect_material24, user_prodselect_material25, user_prodselect_branche1, user_prodselect_branche2, user_prodselect_branche3, user_prodselect_branche4, user_prodselect_branche5, user_prodselect_branche6, user_prodselect_branche7, user_prodselect_branche8, user_prodselect_branche9, user_prodselect_branche10, user_prodselect_branche11, user_prodselect_branche12, user_prodselect_branche13, user_prodselect_branche14, user_prodselect_branche15, user_prodselect_branche16, user_prodselect_branche17, user_prodselect_branche18, user_prodselect_branche19, user_prodselect_branche20, user_prodselect_branche21, user_prodselect_branche22, user_prodselect_branche23, user_prodselect_branche24, user_prodselect_branche25, user_prodselect_picture");
?>

Hilft Dir das weiter?

steffenk ·

naja, ich bin etwas irritiert - warum ist in der ext_tables das TCA nochmal definiert und überschreibt sozusagen das TCA aus der tca.php ? Was hat das "material" in der Tabelle pages zu suchen ? Du hast die gleichen Felder doch in der eigenen Tabelle ?

Ich vermute daher, das es von diesem Wechselspiel kommt und würde mal Sachen auskommentieren, um dem ganzen auf die Spur zu kommen.

Stoffel ·

Tja, ich versuche mal, die Funktion zu erklären, die hinter dem Ganzen steckt:
ich habe eine Tabelle "Material" sowie eine Tabelle "Branche" erstellt, in der mehrere Einträge angelegt sind, z.b. in Material die Einträge "Holz", "Glaswolle", etc. Das gleiche in der Tabelle "Branche": "Filterhersteller", "Dämmstoffindustrie", etc.

In der Tabelle "Pages" hab ich nun 25 Felder "Material1", "Material2", ..., "Material25" angelegt, das selbe für die Branche. Bis jetzt gibt es zwar noch keine 25 unterschiedlichen Materialien bzw. Branchen, aber das ganze wird noch wachsen und eines Tages stehen in der Tabelle "Material" vielleicht mal 25 unterschiedliche Werkstoffe, das selbe natürlich mit der Tabelle "Branche".

Ich möchte nun meinen Produkten hinterlegen, für welche Materialien bzw. Branchen das Produkt geeignet ist und dies in den 25 Material-Feldern und den 25 Branchen-Feldern der Pages-Tabelle mit einer 1 (wenn geeignet) und 0 (wenn nicht geeignet) eintragen. So habe ich die Möglichkeit, ganz individuell allen Produktseiten zu hinterlegen, für welche Werkstoffe bzw. Branchen die Produkte geeignet sind.

Der Kunde hat später im Frontend die Möglichkeit, über zwei Selectboxen (Material und Branche) auszuwählen, welche Maschine für ihn die richtige ist, d.h. ich suche über einen dynamischen SQL-SELECT Befehl nur die entsprechenden Produkte aus der Pages-Tabelle raus. Die passenden Maschinen werden entsprechend in einer dritten Select-Box ausgegeben.

Ich hoffe, ich konnte halbwegs verständlich erklären, um was es bei meiner Extension geht! Sind die Einträge in meinen geposteten Dateien dennoch falsch?

Du kannst Dir das ganze auf meiner "Entwicklungsseite" unter folgendem Link mal anschauen:

http://www.projekt3.stoffel2006.de/index.php?id=12

Es sind allerdings noch keine Einsen und Nullen in der Pages-Tabelle hinterlegt, die Funktion ist also noch nicht 100% da...