Skip to content

Image carousel buttons #36728

Answered by TravelTimN
qoietsammy asked this question in Q&A
Jul 12, 2022 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

@qoietsammy it looks like you're using some templating engine (aspx?) to allow conditionals within your HTML.
<% if(campground.images.length > 1) %{>

When using any sort of templating engine (such as Jinja), something to bear in mind is that any component that uses an id="" attribute (in your case: id="carouselExampleControls") must always be unique. IDs on an HTML page must always be unique, otherwise they won't work properly.

It's quite possible that since you've got more than 1 carousel item to display, they're all "stacking" perhaps?
Would you be able to provide a bit more context and code if that doesn't help?

Tip:
something I like to do when in any forloops with a templating engine …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@qoietsammy
Comment options

@TravelTimN
Comment options

@qoietsammy
Comment options

@TravelTimN
Comment options

Answer selected by qoietsammy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants