[TYPO3] // Show disable RTE checkbox

tapio tapio.markula at dnainternet.net
Mon Feb 6 10:06:06 CET 2006


>> debug($TCA['tt_content']);

it doesn't help much - it doesn't tell where array-variables have been 
set but just what has been set.

I found that 'header_link' and ''header_position' misses ' exclude= 1 '


I have this TCA

$tempColumns = Array (
	"editlock" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:lang/locallang_tca.php:editlock",
		"config" => Array (
			"type" => "check",
		)
	),
);

t3lib_div::loadTCA("tt_content");
t3lib_extMgm::addTCAcolumns("tt_content",$tempColumns,1);
t3lib_extMgm::addToAllTCAtypes("tt_content","editlock;;;;1-1-1");

I found the setting for 'header_link' and ''header_position' from the 
file 'tbl_tt_content.php' of the core plugin 'cms'

I redefined them at this way:

$tempColumns = Array (		
		'header_position' => Array (
		        'exclude' => 1,
			'label' => 'LLL:EXT:cms/locallang_ttc.php:header_position',
			'config' => Array (
				'type' => 'select',
				'items' => Array (
					Array('', ''),
					Array('LLL:EXT:cms/locallang_ttc.php:header_position.I.1', 'center'),
					Array('LLL:EXT:cms/locallang_ttc.php:header_position.I.2', 'right'),
					Array('LLL:EXT:cms/locallang_ttc.php:header_position.I.3', 'left')
				),
				'default' => ''
			)
		),
		'header_link' => Array (	
		  'exclude' => 1,		
			'label' => 'LLL:EXT:cms/locallang_ttc.php:header_link',
			'config' => Array (
				'type' => 'input',
				'size' => '15',
				'max' => '256',
				'checkbox' => '',
				'eval' => 'trim',
				'wizards' => Array(
					'_PADDING' => 2,
					'link' => Array(
						'type' => 'popup',
						'title' => 'Link',
						'icon' => 'link_popup.gif',
						'script' => 'browse_links.php?mode=wizard',
						'JSopenParams' => 
'height=300,width=500,status=0,menubar=0,scrollbars=1'
					)
				),
				'softref' => 'typolink'
			)
		),
	"editlock" => Array (		
		"exclude" => 1,		
		"label" => "LLL:EXT:lang/locallang_tca.php:editlock",
		"config" => Array (
			"type" => "check",
		)
	),
);

That should help.

IMO Typo3 has bug because of missing of
"exclude" => 1
for 'header_position' and 'header_link' because IMO just
'header' itself should not have it but all extra options should have it.

If you want really good layout control install 'tm_contentaccess' - it
includes almost all you can imagine you would like to take off from the 
BE interface!

I have not yet made that bugfix yet. If you know some fields, that are 
not in 'tt_content' or 'pages' in 'Allowed excludelist:' and which 
should be, tell to me and I'll add them.



More information about the TYPO3-english mailing list