Issue Feature Closed

#91077Define default page for Record selector / ElementBrowser

Sebastian Michaelsen 04/17/20, 08:59 updated 10/04/22, 14:00

Description

When using a type=group / 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 type=group / internal_type=db field):

$GLOBALS['TCA']['tx_myext_mytable']['columns']['myfield']['config']['defaultStorageFolders'] = ['tt_address' => 370]

screenshot-contact.png

Reviews 2