Bug #83468

Custom icon for "Folder" is not shown

Added by Soren Malling 12 months ago. Updated 11 months ago.

Status:
Accepted
Priority:
Should have
Assignee:
-
Category:
Pagetree
Target version:
-
Start date:
2018-01-04
Due date:
% Done:

0%

TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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!

Screen Shot 2018-01-04 at 13.51.18.png View (248 KB) Soren Malling, 2018-01-04 13:53

Screen Shot 2018-01-04 at 14.00.07.png View (130 KB) Soren Malling, 2018-01-04 14:00

History

#1 Updated by Tymoteusz Motylewski 11 months 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.

#2 Updated by Georg Ringer 11 months ago

  • Status changed from New to Accepted

Also available in: Atom PDF