Timeline for Showing a generic image when no image is chosen
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 14, 2014 at 15:58 | comment | added | osh | It actually has http:// before it, just not when I paste the code in here :) | |
Jul 14, 2014 at 15:42 | comment | added | Seán O'Grady | try http:// before it ? | |
Jul 14, 2014 at 15:32 | comment | added | osh | Thanks for helping out. I now have this, but it still doesn't output the placehold.it image: {% for image in employee.illustration %} <a href="{{ employee.url }}" class="flag__img"> <img src="{{ image ? image.getUrl : 'placehold.it/60x30' }}" alt="{{ image.altText ? image.altText : "Default Alt Text" }}" class="profile__circular" /> </a> {% endfor %} | |
Jul 14, 2014 at 14:51 | comment | added | Seán O'Grady | edited the above to help you out. | |
Jul 14, 2014 at 14:51 | history | edited | Seán O'Grady | CC BY-SA 3.0 |
more of an explination
|
Jul 14, 2014 at 13:48 | comment | added | osh | Thanks. Could you be a bit more specific please? This didn't do much good. | |
Jul 14, 2014 at 12:06 | history | answered | Seán O'Grady | CC BY-SA 3.0 |