[TYPO3] Page-type: advanced--> how to restrict access to "alias" and "Show content from this page instead"

Tapio Markula tapio.markula at dnainternet.net
Fri Mar 31 19:07:15 CEST 2006


Peter Klein wrote:
> Hi Bert. You can disable those fields by using TSCONFIG..
> 
> Like this:
> 
> TCEFORM.pages {
>   alias.disabled = 1
>   content_from_pid.disabled = 1
> }
> 

can that be set on user/user group level of for TS condig for pages?
If only for pages, not a good idea because admin should be able to set them.

IMO this is a bug, because "alias" and  "Show content from this page 
instead" are not really important fields and they should have exclude field.

You can also reset them in some extension. I have put this
to tm_contentaccess in order to get this fixed:

$tempColumns = Array (
		'alias' => Array (
		  'exclude' => 1,		
			'label' => 'LLL:EXT:cms/locallang_tca.php:pages.alias',
			'config' => Array (
				'type' => 'input',
				'size' => '10',
				'max' => '20',
				'eval' => 'nospace,alphanum_x,lower,unique',
				'softref' => 'notify'
			)
		),
		'content_from_pid' => Array (
		  'exclude' => 1,		
			'label' => 'LLL:EXT:cms/locallang_tca.php:pages.content_from_pid',
			'config' => Array (
				'type' => 'group',
				'internal_type' => 'db',
					'allowed' => 'pages',
				'size' => '1',
				'maxitems' => '1',
				'minitems' => '0',
				'show_thumbs' => '1'
			)
		),
		'mount_pid' => Array (
		  'exclude' => 1,		
			'label' => 'LLL:EXT:cms/locallang_tca.php:pages.mount_pid',
			'config' => Array (
				'type' => 'group',
				'internal_type' => 'db',
					'allowed' => 'pages',
				'size' => '1',
				'maxitems' => '1',
				'minitems' => '0',
				'show_thumbs' => '1'
			)
		),
);

  'exclude' => 1, is the change

also tt_content has corresponding bugs:

	
$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'
			)
		),



More information about the TYPO3-english mailing list