Is there a way to set the image style on an individual carousel paragraph, instead of setting it once for "all" carousel paragraphs?

Comments

hockey2112 created an issue. See original summary.

levmyshkin’s picture

Category: Support request » Feature request
Status: Active » Needs work
levmyshkin’s picture

StatusFileSize
new41.39 KB

Hi hockey2112, EPT Carousel module uses usual Drupal Paragraphs and Block type with paragraph field Carousel (field_ept_carousel). So you can create new View Modes for your Carousel Item paragraph type:
/admin/structure/paragraphs_type/ept_carousel_item/display

EBT Settings

And install one of these modules (only one of them needed):
https://www.drupal.org/project/paragraph_view_mode
https://www.drupal.org/project/paragraphs_viewmode

After that enable selecting view modes for Carousel field in EPT Carousel paragraph type:
/admin/structure/paragraphs_type/ept_carousel/form-display

So it will be possible to select different view modes (sizes) for images in EPT Carousel.

I did selecting image style for single image:
https://www.drupal.org/project/ebt_image
https://www.drupal.org/project/ept_image

It's possible to do the same with Carousel item paragraph type. But it will need to override templates for paragraph or image field in paragraph to display selected image style. It's also possible to do, I will try to implement this.

  • levmyshkin committed 52300336 on 1.4.x
    Issue #3403428 by hockey2112: Image style per carousel, instead of image...
levmyshkin’s picture

I added Image Size (image styles) field in EPT settings, so it's possible to choose Image style for each carousel separately.

EPT settings

Image styles

levmyshkin’s picture

Status: Needs work » Fixed
levmyshkin’s picture

Status: Fixed » Closed (fixed)