Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello
Ich have a problem with images that won't display
I want to create a table, which lists it's childs, where each child can have an image-property set
@if (@CurrentPage.Children.Count() > 0) { <table class="table table-hover table-striped table-condensed"> <tbody> @foreach (dynamic child in CurrentPage.Children) { <tr> <td style="width: 170px;"> <img scr="@Umbraco.Media(@child.image).Url" alt="blog image"/> </td> <td> <a href="@child.Url">@child.Name</a> </td> </tr> } </tbody> </table> } .... Bild: <img src="~/media/1050/arzt.png" />
The path to the images is calculated correctly, but they won't show in the table, as you can see in the screenshot:
I can't find the problem, help is appreciated
Kind regards Jürgen
You have "scr" rather than "src" in your img tag?
Omg, i feel ashamed - Thanks
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Images calculated in ForEach-Loop won't display
Hello
Ich have a problem with images that won't display
I want to create a table, which lists it's childs, where each child can have an image-property set
The path to the images is calculated correctly, but they won't show in the table, as you can see in the screenshot:
I can't find the problem, help is appreciated
Kind regards Jürgen
You have "scr" rather than "src" in your img tag?
Omg, i feel ashamed - Thanks
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.