Breaking: The content element icon has a new identifier
Description
The icon of the content element
academicbitejobs_ is replaced
(ACE-588).
It was a drawing in fixed colours, registered with the core provider and
therefore delivered as an
<img>
tag, which keeps the colours of its file
on the dark cards of a dark backend colour scheme. The new icon is a Font
Awesome Free suitcase, drawn in current and registered with
\FGTCLB\,
which inlines it, so it follows the backend colour scheme. Its identifier
follows the scheme
tx-<extension key without underscores>-<group>-<name>
of the academic
extensions. The content element type and the new content element wizard name
the same identifier.
The old identifier is removed without an alias:
| 2.x identifier | 3.0 identifier | Registry |
|---|---|---|
bitejobs_ |
tx- | Configuration/ |
The file Resources/ is removed. The new
drawing is Resources/, its origin and
licence are listed in Resources/.
Extension. is unchanged. The extension renders no icon in the
frontend, so it registers nothing in a Configuration/.
Impact
TCA, page TSconfig or a template of a site package naming
bitejobs_ renders the "icon not found" placeholder, and
bitejobs_ registered again in a Configuration/Icons.php of a
site package no longer replaces the icon of the content element. A reference to
jobs_ fails.
The behaviour is the same on TYPO3 v13 and v14.
Affected Installations
Installations that reference or override the identifier
bitejobs_
or the file jobs_.
Migration
Use
tx- instead of
bitejobs_ in TCA, page TSconfig and templates. To replace the icon,
register
tx- in the
Configuration/Icons.php of a site package that depends on
academic_bite_jobs:
<?php
declare(strict_types=1);
use TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider;
return [
'tx-academicbitejobs-plugin-bite-jobs' => [
'provider' => SvgIconProvider::class,
'source' => 'EXT:my_sitepackage/Resources/Public/Icons/jobs.svg',
],
];