[TYPO3] User accesscontrol

tapio tapio.markula at dnainternet.net
Thu Mar 9 19:06:42 CET 2006


Hi

The MTB documentation advice to alter this TCA

		'fe_group' => Array (
			'exclude' => 1,
			'label' => 'LLL:EXT:lang/locallang_general.php:LGL.fe_group',
			'config' => Array (
				'type' => 'select',
				'items' => Array (
					Array('', 0),
					Array('LLL:EXT:lang/locallang_general.php:LGL.hide_at_login', -1),
					Array('LLL:EXT:lang/locallang_general.php:LGL.any_login', -2),
					Array('LLL:EXT:lang/locallang_general.php:LGL.usergroups', '--div--')
				),
				'foreign_table' => 'fe_groups'
			)
		),

using these setting

unset($TCA['tt_content']['ctrl']['enablecolumns']['fe_group']);
unset($TCA['tt_content']['columns']['fe_group']['config']['items']);
$TCA['tt_content']['columns']['fe_group']['config']['size']=5;
$TCA['tt_content']['columns']['fe_group']['config']['maxitems']=20;
$TCA['tt_content']['ctrl']['enablecolumns']['user_accessctrl_multigroup'] 
= 'fe_group';

Well how to crette similar for BE users?
How to define 
'$TCA['tt_content']['ctrl']['enablecolumns']['user_accessctrl_multigroup'] 
= 'fe_group';

for be_group using normal TCA definition?

I set similar SQL-statement

CREATE TABLE tt_content (
	editlock tinyint(3) unsigned DEFAULT '0' NOT NULL
	tx_tm_contentaccess_user_group varchar(100) DEFAULT '' NOT NULL
);

What I should change here that this works using multiselect?

		'tx_tm_contentaccess_user_group' => Array (		
			'exclude' => 1,	
			'label' => 'LLL:EXT:tm_contentaccess/locallang_db.php:be_user_group',		
			'config' => Array (
				'type' => 'select',
				'items' => Array (
				),
				'foreign_table' => 'be_groups',	
				'size' => 10,	
				'minitems' => 0,
				'maxitems' => 10,
			)
		),



More information about the TYPO3-english mailing list