[Typo3-dev] Configuring tables/fields for listing in Web > Page

Wolfgang Klinger wolfgang at stufenlos.net
Fri May 7 09:24:38 CEST 2004


 *hiya!*

 On Thu, 06 May 2004, Kasper Skårhøj wrote the following:
> You did it the right way, but if you did not specify the two tables in
> an array as you did you wouldn't remove other extensions definitions and
> there would be no problem as you descibe.

 that way:
----
if (!is_array ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cms']['db_layout']['addTables']))
{
    $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cms']['db_layout']['addTables'] = Array ();
}
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cms']['db_layout']['addTables']['my_extension_table_name'] => Array (
		'0' => Array (
			'fList' => 'fieldname1,fieldname2,fieldname3',
			'icon'=>'0',
			),
);
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cms']['db_layout']['addTables']['my_extension_table_name2'] => Array (
		'0' => Array (
			'fList' => 'field1,field2',
			'icon' => '1',
			),
);
----

 ;-)


 bye
 Wolfgang

 --------------------------------------------------------
 Wolfgang Klinger           mailto:wolfgang at stufenlos.net
 
 Public Key: 
 http://www.stufenlos.net/wolfgang/stfl_wolfgang.gpg
 --------------------------------------------------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-dev/attachments/20040507/6e3ed53b/attachment.pgp>


More information about the TYPO3-dev mailing list