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).

Command icon 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

milos.kroulik created an issue. See original summary.

milos.kroulik’s picture

Status: Active » Needs review

The basic form of MR is submitted, it works for my use case.

shelane’s picture

Assigned: Unassigned » shelane
shelane’s picture

Status: Needs review » Needs work

The 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.

shelane’s picture

I 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.

  • shelane committed 08950f17 on 5.5.x
    Issue #3431173 by milos.kroulik, shelane: Allow any content in carousel...
shelane’s picture

Assigned: shelane » Unassigned
Status: Needs work » Fixed

  • shelane committed 859feb36 on 5.5.x
    Issue #3431173 by shelane, milos.kroulik: Allow any content in carousel...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.