Description of the need
With the addition of https://github.com/backdrop/backdrop-issues/issues/4903 into core, there has been some discussion about the need to add a new image style that we can use for our front page view of Cards. Various options have been discussed here: https://github.com/backdrop/backdrop-issues/issues/5593
Of the options presented, this is the one that has the most traction so far. It would be nice to get this into 1.22.0, since the new cards content type will be so prominent and it would be really nice if the view layout (image alignment) doesn't "break" as people experiment with it.
Proposed solution
After discussing this with @quicksketch during our informal sprint today, we've come up with the following proposal to address the following goals.
1) Keep changes to a minimum 2) Future proof the changes as much as possible 3) Name the new image style in a way that helps people understand the difference between cropped and uncropped image styles 4) Provides a meaningful alternative or option to existing image styles
I'm about to submit a PR that does the following. Feedback welcome.
1) Creates a new cropped image style 2) Names it "Cards (600x400 cropped) 3) Machine name = "cards"
Alternatives that have been considered
https://github.com/backdrop/backdrop-issues/issues/5593
Additional information
We have deliberately added the word cropped into the label to help distinguish it from existing image styles. This one will behave differently, because it is cropped and the others are not, and we feel as if the label should somehow reflect that.
Sorted alphabetically, we would have a list of image styles that would appear as:
Cards (600x400 cropped) Large (800x600) Medium (300x250) Thumbnail (100x100)
Recent comments
Hello, @yorkshirepudding! Thanks a lot, I got it, all sorted out.
My layout template (layout--blog.tpl.php) doesn't work
Hi @Gnome and welcome to Backdrop When I create custom layout templates I put them in /layouts/custom/my_layout Note: you can split modules and layouts between contrib and custom...
My layout template (layout--blog.tpl.php) doesn't work
This post explains how to do this in Drupal 7. In Backdrop, File Entity is already part of core. You will need to download and install module Views Field View. https://drupal.stackexchange...
I Need to Display an Image in a View that was Uploaded to a Webform