copelandia icon indicating copy to clipboard operation
copelandia copied to clipboard

Images: create a proces for a default image if no image is available

Open webthingee opened this issue 11 years ago • 5 comments

Noticing that when there is no image, it breaks the design, would be interesting to create a default for when no image is available.

webthingee avatar Apr 24 '13 02:04 webthingee

Perhaps this is a problem for the 'sending' service, not the 'client' product?

webthingee avatar Apr 24 '13 13:04 webthingee

Considering that Drupal has the ability to specify a default image, we would want to try and utilize that I think. So

Step 1: log into drupal and set a default image 2. see if that image comes through in the json response currently 3. if so, use it when the field is empty 3a. if not, we should figure out how to get it to serve the default image

sirkitree avatar Apr 24 '13 13:04 sirkitree

Agree, is path of least resistance.

Thoughts.... (again thinking about a 'mobile app') . con - performance of getting image vs having a client default. . pro - ability to have different default images in different situations.

webthingee avatar Apr 24 '13 14:04 webthingee

another pro is that this is what the drupal user would expect to happen. If I change the default image in the drupal back-end, I would expect it to show up on the front end.

sirkitree avatar Apr 24 '13 14:04 sirkitree

I updated the recipe view to place the recipe images as backgrounds of the link tag, rather than inline images. This let me set a % padding on the A tags and make a much more consistent layout, with or without pictures.

As for accessibility, I feel that the image is not an essential part of the recipe (compared to the title and description), and removing it from the DOM won't have any negative effect.

micahgodbolt avatar Apr 29 '13 16:04 micahgodbolt