[TYPO3] Ordering i TCA Selectboxes

Jeppe Donslund jd at webmasters.dk
Tue Sep 18 16:16:01 CEST 2007


Hi,

In the Acces box in the "page header"-page the values are slit by 
something like -User groups-. How can I make something like that in my 
own extensions?

I need something like


Category 1
   Video 1
   Video 2
Category 2
   Video 3
   Video 4
   Video 5
Category 3
   Video 6

I have tried with this:

"crossreferences" => Array (		
	"exclude" => 1,		
	"label" => 
"LLL:EXT:wm_pf_videos/locallang_db.xml:tx_wmpfvideos_videos.crossreferences", 
		"config" => Array (
		"type" => "select",	
		"items" => Array (
			Array("Relaterede","--div--"),
		),
		'foreign_table' => 'tx_wmpfvideos_videos',
		'foreign_table_where' => 'AND tx_wmpfvideos_videos.pid = 
###CURRENT_PID###',
		"size" => 10,	
		"minitems" => 0,
		"maxitems" => 100,
	)
),

But it doesn't seems to work

Best Regards
Jeppe D


More information about the TYPO3-english mailing list