Bug #75577

Story #69617: FormEngine bugs

TCA selicon_field feature does not work anymore

Added by Stefan Froemken almost 5 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
Start date:
2016-04-13
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.6
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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.

#1

Updated by Stefan Froemken almost 5 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.

#2

Updated by Gerrit Code Review almost 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/47648

#3

Updated by Benni Mack almost 5 years ago

  • Parent task set to #69617
#4

Updated by Gerrit Code Review almost 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/47648

#5

Updated by Gerrit Code Review almost 5 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

#6

Updated by Gerrit Code Review almost 5 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

#7

Updated by Gerrit Code Review almost 5 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

#8

Updated by Gerrit Code Review almost 5 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

#9

Updated by Stefan Froemken almost 5 years ago

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

Updated by Gerrit Code Review almost 5 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

#11

Updated by Stefan Froemken almost 5 years ago

  • Status changed from Under Review to Resolved
#12

Updated by Riccardo De Contardi over 3 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF