Breaking: Icons renamed, credit points icon is a frontend icon
Description
The icons of this extension came from several sources, a brand mark,
Illustrator exports and icon sets of different styles, and several of them did
not show what they stood for: the category type "Begin of program" was a
bicycle, and the drawings of "Standard period" and "Type of program" read as if
they had been swapped. One identifier, academic-, registered from
the extension icon, served the page type, and the content elements named a file
path that was never a registered identifier.
Every icon of this extension is now a Font Awesome Free solid icon, drawn in
current and registered with
\FGTCLB\,
and each concept has a glyph that fits it (ACE-591). Icons that mean the same in
every academic extension, degree, department, standard period and location,
come from the shared icon set of academic_base. The licence and
origin of every file of this extension are listed in
Resources/.
The identifiers follow the scheme
tx-<extension key without underscores>-<group>-<name>. The group decides
the registry: doktype and plugin icons are backend icons, registered in
Configuration/Icons.php, info icons are frontend icons, registered
in Configuration/ for the frontend icon registry of
academic_base. Renamed identifiers keep no alias.
| 2.x identifier | 3.0 identifier | Registry | Used for |
|---|---|---|---|
academic- | tx- | backend, Configuration/ | the academic program page type (doktype 20): page type select and page tree |
EXT:
(a file path, never registered) | tx- | backend, Configuration/ | the content elements academicprograms_,
academicprograms_ and
academicprograms_: page module, record list and
new content element wizard |
tx- (new in 3.0) | unchanged | frontend, Configuration/ | the credit points fact of a program |
category_ | unchanged | both, registered by category_types | the twelve category types of the group programs |
category_ (new in 3.0) | unchanged | both, registered by category_types | the category type group programs |
The page type and the content elements share the file
Resources/ (Font Awesome
book-) under two identifiers, so a project can replace either of
them on its own. Resources/Public/Icons/Extension.svg stays the
extension icon and is registered for nothing.
The category type and group identifiers are unchanged, the files
Configuration/ declares for them are replaced. Paths
are below Resources/ of this extension unless they start
with EXT::
| Category type | 2.x file | 3.0 file |
|---|---|---|
group programs | Category (never shipped) | category- (book-) |
admission_ | Category | category- (lock) |
application_ | Category | category- (hourglass-) |
begin_ | Category | category- (flag) |
costs | Category | category- (piggy-) |
paying | Category | category- (money-) |
degree | Category | EXT:
(graduation-) |
department | Category | EXT:
(building-) |
standard_ | Category | EXT:
(clock) |
location | Category | EXT:
(location-) |
program_ | Category | category- (layer-) |
teaching_ | Category | category- (language) |
topic | Category | category- (lightbulb) |
The folder Resources/ is removed, with
Job, Performance and
Prerequisites., which nothing referenced, and so is
Resources/, which covered two of
the removed drawings.
The credit points fact of a program, new in 3.0, shows the icon
tx-. Only the frontend shows it, on the
program page, in the program details content element and on the program card.
It is registered in Configuration/, for the frontend
icon registry of academic_base, and not in
Configuration/Icons.php. The partial
Partials/, new in 3.0 as well, renders the icons
of all facts with the ab: ViewHelper of academic_base
(ACE-814).
The icons of the category type facts, category_, come
from the frontend icon registry now as well. category_types
registers them in both registries, so they need no move. A category type that
declares a frontend in Configuration/ shows
that file in the facts.
Impact
The identifier academic- is no longer registered. Wherever a
project names it, a template calling core:, TCA, or the page TSconfig of
a wizard entry of its own, TYPO3 renders its not-found placeholder. A project
that replaced the page type icon by registering academic- in its own
Configuration/Icons.php registers an identifier nothing asks for any
more, so the shipped drawing is shown. Site or backend CSS that selects the icon
by its identifier class, .icon-, no longer matches.
A project that referenced one of the removed files by path, for example to
reuse a category type drawing in its own Category, gets a
missing file.
Every category type icon has a new drawing, in the backend and in the facts of a program, under its unchanged identifier. How the provider and the markup of these icons changed is described in Breaking: Record and category icons follow the colour scheme.
The credit points icon is not known to the icon registry of the backend. A
replacement registered in the Configuration/Icons.php of a site package
is not read for it, and PHP or backend code that asks the
Icon of
TYPO3 for tx- gets the not-found icon.
The fact icons render as the inlined drawing in the wrapper
<span class="t3js-. A category type
declared without an icon file made Program/ of 2.x fail
with exception 1440754980 of the bitmap icon provider of TYPO3, which the
backend icon registry picks for an empty source. The facts show TYPO3's
not-found placeholder for it instead.
Affected Installations
Installations that name academic- anywhere, select
.icon- in CSS, override that identifier, or reference a
file below Resources/ of this extension.
Installations whose site package wants another drawing for the credit points icon.
Migration
- Replace
academic-withprograms tx-where the page type is meant, and withacademicprograms- doktype- program tx-where a content element is meant, in TCA, page TSconfig, templates and CSS selectors on the identifier class.academicprograms- plugin- programs -
Register a project specific drawing of a backend icon under its new identifier in the
Configuration/Icons.phpof the site package:EXT:mysitepackage/Configuration/Icons.php<?php use FGTCLB\AcademicBase\Imaging\IconProvider\CurrentColorSvgIconProvider; return [ 'tx-academicprograms-plugin-programs' => [ 'provider' => CurrentColorSvgIconProvider::class, 'source' => 'EXT:mysitepackage/Resources/Public/Icons/Programs.svg', ], ];Copied!A drawing registered with that provider has to be drawn in
currentwithout colours of its own. Use the coreColor \TYPO3\for a drawing with fixed colours.CMS\ Core\ Imaging\ Icon Provider\ Svg Icon Provider -
Register a replacement of the credit points icon in the
Configuration/of the site package, not in itsFrontend Icons. php Configuration/Icons.php. The file has the format ofIcons.. The site package has to depend on academic_programs, so its entry is read after the shipped one:php EXT:mysitepackage/Configuration/FrontendIcons.php<?php use FGTCLB\AcademicBase\Imaging\IconProvider\CurrentColorSvgIconProvider; return [ 'tx-academicprograms-info-credit-points' => [ 'provider' => CurrentColorSvgIconProvider::class, 'source' => 'EXT:mysitepackage/Resources/Public/Icons/CreditPoints.svg', ], ];Copied! - Replace a path to a removed category type file with the new file from the table above.
- Flush the TYPO3 caches, so the icon registries and the Fluid template cache are rebuilt.
A site package that registers an identifier of its own for its own override,
and renders it with core:, is not affected.