Project

General

Profile

Actions

Feature #73227

closed

Story #69712: Further FormEngine development

Possibility to override Icon

Added by stefan schreck about 8 years ago. Updated almost 3 years ago.

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

100%

Estimated time:
PHP Version:
5.3
Tags:
Complexity:
easy
Sprint Focus:

Description

According to the Feature #35891
it would be nice to override an existing icon.
so e.g. this should work for imageorient type = 26 which is Besides Text, Left

TCEFORM.tt_content.imageorient {
26.altIcons = ../fileadmin/templates/html/images/ce_team.png
}

Thx
Stefan

Actions #1

Updated by Wouter Wolters about 8 years ago

  • Status changed from New to Needs Feedback

Which TYPO3 version are you using?
According to the feature request you reference this should already be possible

Actions #2

Updated by stefan schreck about 8 years ago

Hi
Thanks for the feedback.
I am using 7.6.2
I know that the feature exists.
And it works for newly added Items.
But it doesn't override existing ones.
Even if I remove 26 and re-add it again it won't work at all.

imageorient {
removeItems = 1,2,9,10,25,0,8,17,18
altIcons { ### DOESN'T WORK
26 = ../fileadmin/templates/html/images/ce_team.png
}
addItems { ### WORKS
100 = LLL:fileadmin/templates/Language/locallang.xlf:backend.Mitarbeiter
100.icon = ../fileadmin/templates/html/images/ce_team.png
}
}

Best + Thx

Actions #3

Updated by Mathias Schreiber about 8 years ago

  • Parent task set to #69617
Actions #4

Updated by Christian Kuhn almost 8 years ago

  • Parent task changed from #69617 to #69712
Actions #5

Updated by Riccardo De Contardi almost 8 years ago

  • Status changed from Needs Feedback to New

I performed a test with the latest 8.2 master; as far as I can see:

TCEFORM.tt_content.imageorient {
  addItems.100 = Value
  addItems.100.icon = fileadmin/icon.png
}

works, while

TCEFORM.tt_content.imageorient {
  altIcons.26 = fileadmin/icon.png
}

does not work.

Further notes:

- The online documentation https://docs.typo3.org/typo3cms/TSconfigReference/latest/PageTsconfig/TCEform/Index.html does not mention altIcons
- the changelog .rst file (/typo3/sysext/core/Documentation/Changelog/master/Feature-35891-AddTCAItemsWithIconsViaPageTSConfig.rst) reads as example:

TCEFORM.pages.doktype.addItems {
        13 = My Label
        13.icon = EXT:t3skin/icons/gfx/i/pages.gif
    }
TCEFORM.pages.doktype.altIcons {
        123 = EXT:myext/icon.gif
    }

But the altIcons property only works on the following condition:

"config type=select, maxitems > 1, renderType=selectMultipleSideBySide set" 

(thanks to W.Wolters and S.Moog that helped me digging the code)

Actions #6

Updated by Gerrit Code Review almost 3 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/c/Packages/TYPO3.CMS/+/68776

Actions #7

Updated by Gerrit Code Review almost 3 years ago

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

Actions #8

Updated by Gerrit Code Review almost 3 years ago

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

Actions #9

Updated by Oliver Bartsch almost 3 years ago

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

Updated by Benni Mack almost 3 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF