Breaking: Profile images render as a responsive picture
See also
Upgrading from 2.4 to 3.0 is the order in which the 3.0 changes have to be applied.
Description
The profile card - Partials/, rendered by the list,
card, selected profiles and selected contracts content elements and by
EXT: - and the public profile detail -
Partials/ - render the profile
image through the responsive image partial of EXT:,
Academic/.
The image is no longer a single
<img>
. It is a
<picture>
with
WebP sources per breakpoint and a lazily loading fallback
<img>
. The
image carries ace-, the
<picture>
ace-, in the card and
in the detail, where the image sits in an ace- and the
alternative text stays the title and the names of the profile.
A card of a profile without an image shows a neutral placeholder,
EXT:,
taken from the new setting plugin.
(a TypoScript constant and a site setting of the set
fgtclb/). The detail view shows no image for such a profile,
as before. When the content element limits the shown fields and leaves the
image out, the card shows neither the image nor the placeholder, as before.
The plugin view registers the partials of EXT: with the partial
root path key -1, below the keys 0 and 1 of this extension and of the
project.
Impact
- CSS that selects the image as a direct child of the card, for example
.ace-, does not match: the image is a child of theitem > img <picture>. - Cards of profiles without an image show the placeholder where they showed nothing.
- A project that replaces the partial root paths of the plugin completely,
and a project page object that renders
Profile/through a view of its own, fail with an exception on the partialItem Academic/that the view cannot resolve.Image - An installation that removed
webpfrom$GLOBALSfails with the exception 1618992262 of the core image view helpers on every profile with an image.['TYPO3_ CONF_ VARS'] ['GFX'] ['imagefile_ ext']
A project override of Partials/ or of
Partials/ keeps rendering its
own markup and is not affected.
Affected Installations
Every installation that renders profile cards or the public profile detail of
this extension or of EXT:.
Migration
- Adjust CSS that addresses the card or detail image: select the
<img>by its class, or through the<picture>element. - To keep cards of profiles without an image empty, set
plugin.to an empty value; to show a placeholder of the project, set it to antx_ academicpersons. image. placeholder. default EXT:path of a public file of the site package. -
A view whose partial root paths are replaced completely adds the path of
EXT::academic_ base plugin.tx_academicpersons.view.partialRootPaths { -1 = EXT:academic_base/Resources/Private/Partials/ }Copied! - An override of
Profile/orItem. html Profile/that exists only to render aPublic Profile/ Profile Image. html <picture>, a crop variant or a placeholder can be removed. Breakpoints and widths are changed in an override ofAcademic/instead, see Profile image.Image. html - Flush the TYPO3 caches, so the Fluid template cache is rebuilt.