Project

General

Profile

Actions

Bug #75577

closed

Story #69617: FormEngine bugs

TCA selicon_field feature does not work anymore

Added by Stefan Froemken over 8 years ago. Updated about 7 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.

Actions #1

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.

Actions #2

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

Actions #3

Updated by Benni Mack over 8 years ago

  • Parent task set to #69617
Actions #4

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

Actions #5

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

Actions #6

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

Actions #7

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

Actions #8

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

Actions #9

Updated by Stefan Froemken over 8 years ago

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

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

Actions #11

Updated by Stefan Froemken over 8 years ago

  • Status changed from Under Review to Resolved
Actions #12

Updated by Riccardo De Contardi about 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF