Define default page for Record selector / ElementBrowser
When using a
internal_type=db TCA field you get a separate button for each allowed table that allows you to open the Record selector searching for that specific record type. If you have a (main) storage folder for a certain record type it would be convenient for editors if the Record selector loads with that page opened.
If for example your contact records are on
pid=370 you should be able to configure this in your TCA, so that the Record selector opens with page 370 preselected when the user wants to select for a contact record.
I did a quick proof of concept for which I attach a patch file based on TYPO3 8.7.
The configuration works like this (
myfield being a
$GLOBALS['TCA']['tx_myext_mytable']['columns']['myfield']['config']['defaultStorageFolders'] = ['tt_address' => 370]