Bootstrap explicitly states that carousel item can contain any markup, not only image:
The carousel is a slideshow for cycling through a series of content, built with CSS 3D transforms and a bit of JavaScript. It works with a series of images, text, or custom markup. It also includes support for previous/next controls and indicators.
- https://getbootstrap.com/docs/5.3/components/carousel/
However, the carousel style currently only support structure found in the docs, which also means that we need to use fields for the view and can't simply select a view mode for the entity to make it display inside the carousel item. Perhaps there should be a separate style for this use case (e.g. when we want to have a caousel of cards).
Issue fork views_bootstrap-3431173
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
milos.kroulik commentedThe basic form of MR is submitted, it works for my use case.
Comment #4
shelaneComment #5
shelaneThe 3.x branch allows for content as carousel, but the check for that was left off this branch. Only when it is set to field should it be set for images. I’ll update the options rather than create a different version of a carousel.
Comment #8
shelaneI updated a branch with code that contains the options that were in the 3 branch plus the new ones. I have yet to test it with content yet. I'll do that next week.
Comment #10
shelane