- Issue created by @rolki
- Merge request !33Issue #3489562: Add configurable image styles for Section Library thumbnails β (Open) created by rolki
- Merge request !34Issue #3489562: Add configurable image styles for Section Library thumbnails β (Closed) created by rolki
- πΊπ¦Ukraine mamoruua
The module uses the default image if the user has not uploaded one for the section:
// Default library image. $img_path = $this->extensionListModule->getPath('section_library') . '/images/default.png';
If you don't upload an image for a section (this field is optional) then the image in the form of adding a section from the library looks broken:
Image style cannot be applied to an image that has not been added as an EntityFile to the site database and file system:
I think that the default image should not have an Image Style. It is necessary to leave the original from the module.
- πΊπΈUnited States jastraat
Heads up that I've been approaching this problem in a more wholistic way by making the image field a true image field and template entities fieldable here: https://www.drupal.org/project/section_library/issues/3442106 β¨ Make section library template entities fieldable Needs review
- πΊπ¦Ukraine rolki
@jastraat
That's great, I didn't notice your issue, thanks for pointing it out, I'll try what you did πͺπ½