Closed (won't fix)
Project:
bootstrap_carousel
Version:
7.x-1.0-rc1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Jun 2013 at 16:19 UTC
Updated:
6 Feb 2014 at 13:42 UTC
Jump to comment: Most recent
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.