Currently I ran into a strange bug, images in rich text field are broken in feather list(master) view.
I have a custom module and a simple content type that contains a short text field "Title" and a rich text field "Content". And I created a custom list view that shows both Title and Content. Here is the code:
@foreach (var item in Model.Items)
When I opened the page in chrome, the images I put in rich text are all broken, this is what I saw in the developer tool:
It seems the image in rich text was not "translated" at all. Is there anything special I need to do if I want to output rich text in the list view?
Thanks Vicor, this helps a lot. Your code doesn't work instantly though because item.Fields.Content is dynamic. I got it to work by making a small modification:
@Html.Raw(LinkParser.ResolveLinks(item.Fields.Content as Lstring, DynamicLinksParser.GetContentUrl, null, false))
Thank you very much!
Hi Ethan, you can resolve links like that:
@Html.Raw(LinkParser.ResolveLinks(item.Fields.Title, DynamicLinksParser.GetContentUrl, null, false))