Project

General

Profile

Actions

Task #85655

closed

Suggest wizard should receive record's uid as parameter

Added by Xavier Perseguers over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
Start date:
2018-07-26
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Sprint Focus:

Description

When implementing a custom suggestion wizard, it could be useful to receive the uid of the record where the suggestion is requested. A sample use-case is when the suggest wizard lets you query records for the same table but you want to filter out the record itself.

Actions #1

Updated by Xavier Perseguers over 5 years ago

To test, you may apply this patch which will show you a suggest wizard for the db_mountpoints field of table be_groups:

diff --git a/typo3/sysext/core/Configuration/TCA/be_groups.php b/typo3/sysext/core/Configuration/TCA/be_groups.php
index 0e8fa663e6..97604e134d 100644
--- a/typo3/sysext/core/Configuration/TCA/be_groups.php
+++ b/typo3/sysext/core/Configuration/TCA/be_groups.php
@@ -44,6 +44,11 @@ return [
                 'size' => 3,
                 'maxitems' => 100,
                 'autoSizeMax' => 10,
+                'wizards' => [
+                    'suggest' => [
+                        'type' => 'suggest',
+                    ]
+                ]
             ]
         ],
         'file_mountpoints' => [
Actions #2

Updated by Gerrit Code Review over 5 years ago

  • Status changed from New to Under Review

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

Actions #3

Updated by Gerrit Code Review over 5 years ago

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

Actions #4

Updated by Gerrit Code Review over 5 years ago

Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57691

Actions #5

Updated by Xavier Perseguers over 5 years ago

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

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF