Task #85655
closed
Suggest wizard should receive record's uid as parameter
Added by Xavier Perseguers almost 6 years ago.
Updated over 5 years ago.
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.
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' => [
- Status changed from New to Under Review
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF