[TYPO3-core] RFC: #10897: typo3/db_new.php prompts to create records in hidden, static and readonly tables

Rupert Germann rupi at gmx.li
Wed Oct 14 22:24:28 CEST 2009


hi Steffen,

+1 by reading and testing

greets
rupert


Steffen Kamper schrieb:
> Hi,
> 
> This is SVN patch request.
> 
> Type: Bugfix
> 
> Branches: trunk
> 
> BT reference: http://bugs.typo3.org/view.php?id=10897
> 
> If a table is marked as hidden or static or readonly, new record wizard 
> (typo3/db_new.php) still prompts to create an entry there. Such tables 
> should not be visible in the new record wizard at all.
> 
> Example setup for the table:
> 
> $TCA['tx_rsaauth_keys'] = array (
>     'ctrl' => array (
>         'adminOnly' => true,
>         'hideTable' => true,
>         'is_static' => true,
>         'label' => 'uid',
>         'readOnly' => true,
>         'rootLevel' => 1,
>         'title' => 'Hidden, static and read-only table'
>     ),
>     'columns' => array(
>     ),
>     'types' => array(
>         '0' => array(
>             'showitem' => ''
>         )
>     )
> );
> 
> Solution:
> respect $TCA[$table]['ctrl']['isAdmin'], 
> $TCA[$table]['ctrl']['readOnly'], $TCA[$table]['ctrl']['hideTable'] and 
> $TCA[$table]['ctrl']['is_static']
> 
> vg Steffen
> 
> vg Steffen
> 


More information about the TYPO3-team-core mailing list