Bug #75577
closedStory #69617: FormEngine bugs
TCA selicon_field feature does not work anymore
100%
Description
Hello Core-Team,
I have main record which contains a field configuration like:
'color_scheme' => array( 'exclude' => 1, 'label' => 'ColorScheme', 'config' => array( 'type' => 'select', 'foreign_table' => 'tx_drstmplmodule_domain_model_colorscheme', 'foreign_table_where' => 'AND tx_drstmplmodule_domain_model_colorscheme.type=###REC_FIELD_type###', 'size' => 1, 'showIconTable' => 1, 'selicon_cols' => 4, 'minitems' => 1, 'maxitems' => 1 ), ),
https://docs.typo3.org/typo3cms/TCAReference/Reference/Columns/Select/Index.html#showicontable
In the ctrl part of the foreign table I have following:
'selicon_field' => 'icon', 'selicon_field_path' => 'uploads/media',
This is documented here:
https://docs.typo3.org/typo3cms/TCAReference/Reference/Ctrl/Index.html#selicon-field
Quote: "Field name, which contains the thumbnail image used to represent the record visually whenever it is shown in TCEforms as a foreign reference".
But I still don't get any icons below the selectbox.
Updated by Stefan Froemken over 8 years ago
In AbstractItemProvider.php I found following:
$iconFieldName = ''; if (!empty($result['processedTca']['ctrl']['selicon_field'])) { $iconFieldName = $result['processedTca']['ctrl']['selicon_field']; } $iconPath = ''; if (!empty($result['processedTca']['ctrl']['selicon_field_path'])) { $iconPath = $result['processedTca']['ctrl']['selicon_field_path']; }
It seems that you try to access the selicon_field of the main table and not of the foreign table.
Updated by Gerrit Code Review over 8 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/47648
Updated by Gerrit Code Review over 8 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/47648
Updated by Gerrit Code Review over 8 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47648
Updated by Gerrit Code Review over 8 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47648
Updated by Gerrit Code Review over 8 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47648
Updated by Gerrit Code Review over 8 years ago
Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47887
Updated by Stefan Froemken over 8 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 97103f357f668e09e793190395155e72ed06eaf9.
Updated by Gerrit Code Review over 8 years ago
- Status changed from Resolved to Under Review
Patch set 2 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47887
Updated by Stefan Froemken over 8 years ago
- Status changed from Under Review to Resolved
Applied in changeset 489774446aa09aaf283d747c5efc38b5b6ff8266.
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed