Bug #83468
closedCustom icon for "Folder" is not shown
0%
Description
I've registered a custom icon for the "Contains" selector in "Page Properties". the code is here
if (TYPO3_MODE === 'BE') {
/** @var \TYPO3\CMS\Core\Imaging\IconRegistry $iconRegistry */
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon(
'apps-pagetree-folder-contains-partnerads',
\TYPO3\CMS\Core\Imaging\IconProvider\FontawesomeIconProvider::class,
[
'name' => 'rss'
]
);
}
Notice it's a FontAwesome provided icon - dunno if that could cause the missing rendering of the icon
The custom icon is not being displayed in the page tree (see screenshot) but is working as identifier for ex. TCA tables.
!Screen Shot 2018-01-04 at 13.51.18.png!
Choosing the "frontend user" as "Module" gives the expected rendering of the icon, so the support for SVGIcons is working
The icons doesn't seem to be registered in the <defs> part of the pagetree, could that be a reason?
!Screen Shot 2018-01-04 at 14.00.07.png!
Files
Updated by Tymoteusz Motylewski over 6 years ago
you're right, FontAwesome icons are not supported yet unfortunatelly, as they are not rendered inline.
Need to think how can we support that.
Updated by Rémy DANIEL over 4 years ago
- File Sélection_997.png Sélection_997.png added
Attached another screenshot taken on 9.5.
The fontawesome icon is correctly display except in the page tree.
Updated by Vasyl Mosiychuk over 4 years ago
I have the same problem with the custom icons for the custom of the page type
Updated by Benni Mack almost 2 years ago
- File Screenshot 2022-11-03 at 21.18.05.png Screenshot 2022-11-03 at 21.18.05.png added
- Status changed from Accepted to Needs Feedback
Hey everyone,
I tried to reproduce this with v11 LTS and v12.
This is what I have:
EXT:my_ext/Configuration/Icons.php
<?php
return [
'apps-pagetree-folder-contains-partnerads' => [
'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
'source' => 'EXT:redirects/Resources/Public/Icons/mimetypes-x-sys_redirect.svg',
],
];
EXT:my_ext/Configuration/TCA/Overrides/my_module.php
<?php
$GLOBALS['TCA']['pages']['ctrl']['typeicon_classes']['contains-partnerads'] = 'apps-pagetree-folder-contains-partnerads';
$GLOBALS['TCA']['pages']['columns']['module']['config']['items'][] = ['Partner Ads', 'partnerads', 'apps-pagetree-folder-contains-partnerads'];
I also attached a screenshot on how it looks... Did I miss something?
Updated by Wolfgang Klinger over 1 year ago
@Benni Mack yes, that this ticket is about FontawesomeIconProvider ;)
Updated by Christian Kuhn 11 months ago
- Status changed from Needs Feedback to Closed
Hey. I hope it is ok to close here: FontawesomeIconProvider has been removed in v12, and we will most likely not change anything in v11 in this area anymore. Feel free to re-open or re-discuss in case we bissed something.