Broken image, retrieve Generic Content: - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

Broken image, retrieve Generic Content:

  • 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
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>