Extended Image Block Returns /thumbnails/small/ Image
Permalink
Hey All,
I have created a new block by copying the original Image block into /application/block/hero_image. Mostly I have some additional string variables to controller.php, db.xml, and form.php, so I can use them for styled buttons in view.php.
Also added was, in controller.php, so the image will span the full browser width.
Everything is working well, except that the image that is being returned in view is not the full size image, but instead appears to be the "Large Thumbnail" sized to 1140px wide.
Inspecting the code in the browser reveals the image is
So I guess my question is: Why is the generated thumbnail being passed and is there a setting I'm over looking here?
I'm just testing this out in the Element theme if that helps. I'm fairly new with C5, if that isn't already obvious :).
Thanks for your help!
I have created a new block by copying the original Image block into /application/block/hero_image. Mostly I have some additional string variables to controller.php, db.xml, and form.php, so I can use them for styled buttons in view.php.
Also added was
protected $btIgnorePageThemeGridFrameworkContainer = true;
Everything is working well, except that the image that is being returned in view is not the full size image, but instead appears to be the "Large Thumbnail" sized to 1140px wide.
Inspecting the code in the browser reveals the image is
<img src="/c5/application/files/thumbnails/small/9315/0066/0614/hfD4BA4.jpg" alt="" class="ccm-image-block img-responsive bID-171">
So I guess my question is: Why is the generated thumbnail being passed and is there a setting I'm over looking here?
I'm just testing this out in the Element theme if that helps. I'm fairly new with C5, if that isn't already obvious :).
Thanks for your help!
Did you enter a height and width? You can see on line 4 of the view.php in the original image block that if there is a height and width entered it gets a thumbnail with those dimensions.
Thanks, Hutman. That's what was confusing me, because I was pretty sure I had NOT entered height/width. Since then, I've tried the same block on a different machine, uploading a new image, and have not run into the issue.
If I had to guess, I'd have to say it was late-day-tired-programmer error. It's possible I had entered a dimension and forgot about it throughout testing.
If this comes up again, I will repost, but for now, I'm going with that.
Thanks for your feedback.
If I had to guess, I'd have to say it was late-day-tired-programmer error. It's possible I had entered a dimension and forgot about it throughout testing.
If this comes up again, I will repost, but for now, I'm going with that.
Thanks for your feedback.