Unclean solution, but working (is not respecting CType)
t3lib_div::loadTCA('tt_content');
$TCA['tt_content']['columns']['select_key']['config']['wizards']['tx_wizards_uploads_path']
= array(
'type' => 'popup',
'enableByTypeConfig' => 0,
'title' => 'Link',
'icon' => 'link_popup.gif',
'script' => 'browse_links.php?mode=wizard&act=folder',
'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1',
'params' => array (
'blindLinkOptions' => 'page,mail,url,file'
)
);
Theoretically this should be the solution, but the problem is, that the wizard config ;;wizards[tx_wizards_uploads_path] is not respected for some reason
t3lib_div::loadTCA('tt_content');
$TCA['tt_content']['columns']['select_key']['config']['wizards']['tx_wizards_uploads_path'] = array(
'type' => 'popup',
'enableByTypeConfig' => 1,
'title' => 'Link',
'icon' => 'link_popup.gif',
'script' => 'browse_links.php?mode=wizard&act=folder',
'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1',
'params' => array (
'blindLinkOptions' => 'page,mail,url,file'
)
);
$TCA['tt_content']['palettes']['uploads']['showitem'] = str_replace(
'select_key;LLL:EXT:cms/locallang_ttc.xml:select_key.ALT.uploads_formlabel',
'select_key;LLL:EXT:cms/locallang_ttc.xml:select_key.ALT.uploads_formlabel;;wizards[tx_wizards_uploads_path]',
$TCA['tt_content']['palettes']['uploads']['showitem']
);