Project

General

Profile

Actions

Feature #91077

closed

Define default page for Record selector / ElementBrowser

Added by Sebastian Michaelsen about 4 years ago. Updated over 1 year ago.

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

100%

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
Actions #1

Updated by Sebastian Michaelsen about 4 years ago

  • Description updated (diff)
Actions #2

Updated by Stephan Bauer over 2 years ago

I would appreciate that also.

Actions #3

Updated by Gerrit Code Review over 2 years ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72911

Actions #4

Updated by Gerrit Code Review over 2 years ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72911

Actions #5

Updated by Gerrit Code Review over 2 years ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72911

Actions #6

Updated by Gerrit Code Review over 2 years ago

Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72911

Actions #7

Updated by Gerrit Code Review over 2 years ago

Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72911

Actions #8

Updated by Oliver Bartsch over 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #9

Updated by Gerrit Code Review over 2 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73008

Actions #10

Updated by Gerrit Code Review over 2 years ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73008

Actions #11

Updated by Oliver Bartsch over 2 years ago

  • Status changed from Under Review to Resolved
Actions #12

Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF