Feature #91077

Define default page for Record selector / ElementBrowser

Added by Sebastian Michaelsen 8 months ago. Updated 8 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2020-04-17
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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]


Files

elementbrowser-default-storage-folder.patch (1.6 KB) elementbrowser-default-storage-folder.patch Sebastian Michaelsen, 2020-04-17 08:57
screenshot-contact.png (19.9 KB) screenshot-contact.png Sebastian Michaelsen, 2020-04-17 08:58
#1

Updated by Sebastian Michaelsen 8 months ago

  • Description updated (diff)

Also available in: Atom PDF