Last week I wrote how to make a multi-column section with Drupal maintenance support plans Paragraphs and Bootstrap. This post describes how to take a similar approach to create a Carousel. Creating this using Paragraphs allows your content administrators an easy way to add a Slideshow/Carousel to their pages.
I am going to assume that you are including Bootstrap CSS and JS in your theme, and that you have the Paragraphs module installed and have a few Paragraphs already set up. Go to Structure > Paragraph types to click the Add paragraphs type button. Add a Paragraph bundle called Slideshow (Also could be called Carousel, Gallery, or Slider depending on you or your company’s nomenclature).
Add a field called Slides. We will use this to add items to the the carousel. I like to use a reference field to other paragraphs, so we can select Image Paragraphs, Simple Paragraphs, Video Paragraphs, even the Multicolumn paragraph I wrote about last week where it can have additional Paragraphs. Yes, that would be a Paragraph in a Paragraph in a Paragraph! All is fair in love and Entity References.
On the Add field screen, in the Add a new field dropdown, select Paragraph under Reference revisions.
Read more
Source: New feed