Feature #73227

Story #69712: Further FormEngine development

Possibility to override Icon

Added by stefan schreck over 3 years ago. Updated over 3 years ago.

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

0%

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

History

#1 Updated by Wouter Wolters over 3 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

#2 Updated by stefan schreck over 3 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

#3 Updated by Mathias Schreiber over 3 years ago

  • Parent task set to #69617

#4 Updated by Christian Kuhn over 3 years ago

  • Parent task changed from #69617 to #69712

#5 Updated by Riccardo De Contardi over 3 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)

Also available in: Atom PDF