- 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 πͺπ½ - πΊπΈUnited States jastraat
β¨ Make section library template entities fieldable Needs review offers the ability to select an image style for the display in the "Import from library" dialog (by configuring the image field in the entity display settings to use an image style) and also supports using an image style within the section library view (in view configuration). Given that, I'd like to direct attention to that issue and close this one.