Broken image, retrieve Generic Content:
Broken image, retrieve Generic Content:
Am trying to retrieve Generic Content, but the problem is that the images in it do not show (broken path).
How do I get the HTML out to point to the right path?!
This is how I get the content.
ContentItem g_items = App.WorkWith().ContentItems()
.Where(nI => nI.Status == Telerik.Sitefinity.GenericContent.Model.ContentLifecycleStatus.Live)
.OrderBy(nI => nI.DateCreated)
.Get().Single();
Response.Write(g_items.Content);
Hi Taha,
I made a simple test and the image correctly appears at my end.
var contentBlocksManager = ContentManager.GetManager();
var item = contentBlocksManager.GetItems<ContentItem>().Where(cnt => cnt.Status == ContentLifecycleStatus.Live).First();
var ht = item.Content;
var lit = new Literal();
lit.Text = ht;
Controls.Add(lit);
Best wishes,
Ivan Dimitrov
the Telerik team