[Typo3-german] TCA - "eval = required" for "select"

Jonas DŸbi jduebi at snowflake.ch
Tue Sep 27 14:06:50 CEST 2005


Sorry falsche liste...

Jonas DŸbi<jduebi at snowflake.ch> wrote:
>
>Hi
>
>I added a select box to the "page" TCA which gets it's options from an
>other table. Nothing special everything works :-)
>But I need to set the field as 'required', I need this little yellow
>flag if there is nothin selected. 
>I already tried this:
>1. Add a empty Entry within the items array (of course)
>2. Set 'allowNonIdValues' => 0,
>3. Set "minitems" => 1,
>4. Set 'eval' => 'required', (I already knew it doesn't work -> just for
>input)
>Is there any possibility to set this field as required?
>
>	"tx_xyz_author" => Array (		
>		"exclude" => 1,		
>		"label" => "LLL:EXT:xyz/locallang_db.php:pages.tx_xyz_author",
>		"config" => Array (
>			"type" => "select",	
>			"items" => Array (
>				Array("",""),
>			),
>			"foreign_table" => "tx_xyz_people",	
>			"foreign_table_where" => " ORDER BY tx_xyz_people.uid",
>			"size" => 1,	
>			"minitems" => 1,
>			'allowNonIdValues' => 0,
>			"maxitems" => 1,
>			'eval' => 'required',
>		)
>	),
>
>Thanks.... 
>Jonas
>
>-- 
>/**
>* Nur wer schneller ist als der Strom hat die Kontrolle 
>* Ÿber seinen Weg.
>*/
>



-- 
/**
* Nur wer schneller ist als der Strom hat die Kontrolle 
* Ÿber seinen Weg.
*/




More information about the TYPO3-german mailing list