Project

General

Profile

Actions

Bug #88402

closed

Systeminformation toolbar - renders png/svg icons not correctly

Added by Christian Hackl almost 5 years ago. Updated almost 4 years ago.

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'
  );
}

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #84773: Systeminformation toolbar should render svgs inlineClosed2018-04-17

Actions
Related to TYPO3 Core - Bug #90633: png Icons for BackendModulesClosed2020-03-04

Actions
Actions

Also available in: Atom PDF