Image slides should be able to come from a Image Style preset.
Enough if it can be defined under field configuration on content type visualization.
Image slides should be able to come from a Image Style preset.
Enough if it can be defined under field configuration on content type visualization.
Comments
Comment #1
vali hutchison commentedI would agree this would be a good option - to be able to select the image style via 'Manage Display' for the Carousel content type.
However, the Carousel module provides a drupal template bootstrap_carousel/theme/node--bootstrap_carousel.tpl.php so you can then copy this into your theme's templates folder and edit to use your own image style. For example I create an image style called wide_carousel_image and then changed the code on line 50 from
$img_url = file_create_url(file_load($carousel_slide['carousel_image'])->uri);to be
$img_url = image_style_url('wide_carousel_image', file_load($carousel_slide['carousel_image'])->uri);and then it displays the carousels using this new wide image using the image styles I've set for it.
Comment #2
hatuhay commentedGood enough, have not notice that.
Thanks!!
Comment #3
busla commentedThanks!
This is information is essential to change the dimensions of the slides you are using.
May I suggest that the author creates a "Tips & Tricks" page open for editing so Vali Hutchison´s solution can be shared on the project page?
Comment #4
carolpettirossi commentedbusla I've added this tip & trick to module page.
Tks.