Breaking: Profile images render as a responsive picture
Description
The contacts content element renders every contact through the profile card
of EXT:, Partials/, which renders
the profile image through the responsive image partial of EXT:
from 3.0 on. The image of a contact is therefore a
<picture>
with WebP
sources and a fallback
<img>
with the classes card-,
and a contact whose profile has no image shows the placeholder of the persons
plugins.
The plugin view registers
EXT: with the partial root
path key -1, below the keys 5 and 10 it uses already, and its settings
take the placeholder from the constant
plugin., the same one the
persons plugins read.
Impact
- CSS that selects the image as a direct child of the card no longer matches.
- Contacts without a profile image show the placeholder where they showed nothing.
- A project that replaces the partial root paths of the plugin completely,
and a page template that renders the contacts of the
\FGTCLB\throughAcademic Contacts4pages\ Data Processing\ Contacts Processor Profile/in a view of its own, fail with an exception on the partialItem Academic/that the view cannot resolve.Image
Affected Installations
Every installation that renders the contacts content element, or the contacts of the data processor through the profile card.
Migration
- Adjust CSS that addresses the contact image.
- To keep contacts without a profile image empty, set
plugin.to an empty value.tx_ academicpersons. image. placeholder. default -
A view that renders
Profile/- the plugin view with replaced partial root paths, or the page view of a page template - lists the path ofItem EXT:below the others:academic_ base plugin.tx_academiccontacts4pages.view.partialRootPaths { -1 = EXT:academic_base/Resources/Private/Partials/ }Copied! - Flush the TYPO3 caches, so the Fluid template cache is rebuilt.