Forum
Bucket value ignored
The bucket is coming up as "Default" even though I've set up "Carousel" for the image here. I expect I've made an error setting up the srcset options but I can't find it...
Here is the template:
<perch:before><div class="owl-carousel clear"></perch:before>
<div>
<div class="carousel">
<perch:if exists="link"><a class="carousel__link" href="<perch:content id="link" type="text" label="Link" required="false" order="4" help="Optional" />"></perch:if>
<img alt="" class="carousel__image" src="<perch:content id="image" type="image" label="Image" width="1440" height="710" crop="true" order="1" bucket="carousel" required="true" help="Make sure this image is big" />"
srcset="<perch:content type="image" id="image" label="Image" width="400" /> 400w,
<perch:content type="image" id="image" label="Image" width="800" /> 800w,
<perch:content type="image" id="image" label="Image" width="1440" height="710" crop="true" /> 1440w">
<div class="carousel__text">
<h2 class="carousel__heading" data-aos="fade-left">
<perch:content id="heading" title="true" type="text" label="Heading" order="2" />
</h2>
<p class="carousel__description" data-aos="fade-right" data-aos-offset="0">
<perch:content id="description" type="text" label="Description" order="3" />
</p>
</div>
<perch:if exists="link"></a></perch:if>
</div>
</div>
<perch:after></div></perch:after>
Coming up where? What happens when you upload?
Is the bucket defined in your bucket list, or is a just a subfolder?
Can we see your diagnostics report?
When I click "Select or upload an image" then "Add asset" it says Bucket: Default in the space where I upload/drag-drop.
I can see in admin/resources the "carousel" folder is there but nothing inside. The image gets uploaded along with all the versions to admin/resources and not admin/resources/carousel.
I've not done anything with bucket lists - didn't know they existed!
I'm on localhost.
Diagnostics:
Is that your entire template, or a part of the template?
Entire template
Are buckets working elsewhere on the site?
Yes. In fact I have another template virtually identical and that one works fine.
If you compare them, what's different?
The HTML is a bit different but (as far as I can see) the image part is the same other than a different height setting and bucket name:
Is anything different in the way you're filling out the form?