Feature #66525

IconUtility->skinImg source does not allow EXT prefix

Added by Simon Schaufelberger over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Could have
Assignee:
Category:
Backend API
Target version:
-
Start date:
2015-04-21
Due date:
% Done:

0%

PHP Version:
Tags:
Complexity:
easy
Sprint Focus:

Description

pageTSConfig:

wizardItems.[group].elements.[name].icon is defined as image resource. It is possible to either set it via PHP like here: http://docs.typo3.org/typo3cms/CoreApiReference/ApiOverview/Examples/ContentElementWizard/Index.html with ExtensionManagementUtility::extRelPath or make the path relative with ../../typo3conf/ext/myextension but using EXT:myextension is not working.

Example which should work:

mod.wizards {
    newContentElement.wizardItems {
        special {
            elements {
                worldmap {
                    icon = EXT:contentelements/Resources/Public/Images/worldmap.gif
                    ...
                }
            }
            show = *
        }
    }
}

Related issues

Related to TYPO3 Core - Bug #46433: Path for the icon in new content element wizard Closed 2013-03-19

History

#1 Updated by Simon Schaufelberger over 4 years ago

here is the class: TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController Line 221 where it is used.

<img' . IconUtility::skinImg($this->doc->backPath, $wInfo['icon'], '') . ' alt="" />

#2 Updated by Benni Mack about 4 years ago

  • Category changed from TypoScript to Backend API
  • Assignee set to Benni Mack

#3 Updated by Wouter Wolters about 4 years ago

  • Status changed from New to Closed

Resolved with: #46433

Also available in: Atom PDF