<p>A matrix field for an image carousel needs only a single asset field, one that will accept more than one image. In my experience there is rarely a requirement for anything more. 99% of carousels I have implemented look like this: </p>

<p><a href="https://i.sstatic.net/fzpHd.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/fzpHd.png" alt="An example matrix field for an image carousel"></a></p>

<p>If you wanted to add text to accompany each slide you could add a text field directly to the image asset and then display that with each carousel slide:</p>

<p><a href="https://i.sstatic.net/ydGaW.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/ydGaW.png" alt="A Craft CMS asset field"></a></p>

CC BY-SA 4.0
2019-06-27T14:02:34.223Z
Right, I just worry about the text to accompany each image for the carousel, since the 'Text' Matrix field is only applied once.
egivensjr
CC BY-SA 4.0
2019-07-01T09:02:15.070Z
You could just attach a text field to image assets to create an image caption for each slide if you wanted. In my example above the text field is a separate block entirely, a Redactor field for entering standard copy, it has nothing to do with the carousel.
Seth Warburton
CC BY-SA 4.0
2019-07-01T14:55:50.390Z
That's perfect! This would solve my problem. I was over thinking it. Thank you so much for replying.
egivensjr
CC BY-SA 4.0
2019-07-03T08:27:32.623Z
No problem. I've expanded on my answer to include details for adding image captions. If you feel this is the answer to your question @egivensjr kindly mark it as the accepted answer. Thanks.
Seth Warburton
CC BY-SA 4.0
2019-06-26T12:08:24.017Z
2019-07-03T08:25:27.480Z
2019-07-03T08:25:27.480Z
Seth Warburton
<p>I'm hoping to get some help or guidance on a issue that I'm having. I am using Bootstrap 4 as my CSS framework and wanted to integrate a working Carousel with my web project.  I managed to get the jumbotron working with a Matrix field. See below:</p>

<p><a href="https://i.sstatic.net/6Hgpn.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/6Hgpn.png" alt="enter image description here"></a></p>

<p><a href="https://i.sstatic.net/aqjvT.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/aqjvT.png" alt="enter image description here"></a></p>

<p>I was hoping that I could create a Carousel Matrix block in a similar fashion as the Jumbotron that was created previously. Any suggestions on a proper setup?</p>

<bootstrap-craft>
How to setup Bootstrap 4 Carousel with Craft CMS 3?
# How to setup Bootstrap 4 Carousel with Craft CMS 3?

(Asked by: username_0 on 2019-06-05)

I'm hoping to get some help or guidance on a issue that I'm having. I am using Bootstrap 4 as my CSS framework and wanted to integrate a working Carousel with my web project. I managed to get the jumbotron working with a Matrix field. See below:

[![enter image description here](https://i.sstatic.net/6Hgpn.png)](https://i.sstatic.net/6Hgpn.png)

[![enter image description here](https://i.sstatic.net/aqjvT.png)](https://i.sstatic.net/aqjvT.png)

I was hoping that I could create a Carousel Matrix block in a similar fashion as the Jumbotron that was created previously. Any suggestions on a proper setup?

**Tags:** bootstrap-craft


---

## 1 answers

### Answer by username_1 on 2019-06-26. Score: 2

A matrix field for an image carousel needs only a single asset field, one that will accept more than one image. In my experience there is rarely a requirement for anything more. 99% of carousels I have implemented look like this:

[![An example matrix field for an image carousel](https://i.sstatic.net/fzpHd.png)](https://i.sstatic.net/fzpHd.png)

If you wanted to add text to accompany each slide you could add a text field directly to the image asset and then display that with each carousel slide:

[![A Craft CMS asset field](https://i.sstatic.net/ydGaW.png)](https://i.sstatic.net/ydGaW.png)

> **Comments:**
> **username_0**: Right, I just worry about the text to accompany each image for the carousel, since the 'Text' Matrix field is only applied once.  
> **username_1**: You could just attach a text field to image assets to create an image caption for each slide if you wanted. In my example above the text field is a separate block entirely, a Redactor field for entering standard copy, it has nothing to do with the carousel.  
> **username_0**: That's perfect! This would solve my problem. I was over thinking it. Thank you so much for replying.  
> **username_1**: No problem. I've expanded on my answer to include details for adding image captions. If you feel this is the answer to your question @username_0 kindly mark it as the accepted answer. Thanks.  

---

