Actions
Bug #88402
closedSysteminformation toolbar - renders png/svg icons not correctly
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2019-05-20
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
systeminformation, toolbar,CodingNight
Complexity:
Is Regression:
Sprint Focus:
Description
Extending the system information toolbar with a png-icon, renders following:
'<img width="16" height="16" xlink:href="/typo3conf/ext/myExt/Resources/Public/Images/BackendIcons/myIcon.png">'
- 'src'-attribute is missing.
- xlink:href have the correct path.
- xlink:href is depricated - https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/xlink:href
TYPO3 9.5.7
// ext_localconf.php ... $iconRegistry->registerIcon( 'test-icon', \TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class, ['source' => "EXT:{$extensionKey}/Resources/Public/Images/BackendIcons/myIcon.png"] );
// ToolbarItem.php ... public function addVersionInformation(SystemInformationToolbarItem $systemInformation) { //... $systemInformation->addSystemInformation( 'My Title', htmlspecialchars($value, ENT_QUOTES | ENT_HTML5), 'test-icon' ); }
Actions