+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Sitefinity 3.7 - News Manager Module - Query

Sitefinity 3.7 - News Manager Module - Query

3 posts, 0 answered
  1. v
    v avatar
    27 posts
    Registered:
    12 Aug 2009
    20 Oct 2009
    Link to this post

    Hi,

    I'm Using sitefinity 3.7 version - I’m adding some news items in admin part while adding the news thumbnail when, I select the path it shows like - [Libraries]984a5b62-8193-4adf-8d16-e16bdb6fcb0a

    -          Do we need to set the Image Path location over here? If it’s yes how to set?

    I'm customizing the news way of display, so I’m taking only 3 items in to the data table and assigning to the repeater control.

    While fetching a news, I wanted to take the thumbnail image path – how do I take?

     

    This is a way I’m taking the data

     

    NewsManager newsManager = new NewsManager("News");

    IList ListOfNewsItems = newsManager.Content.GetContent();

    if (ListOfNewsItems.Count > 0)

                {

                    foreach (IContent ICntNews in ListOfNewsItems)

                    {                            dtable.Rows.Add(ConfigurationManager.AppSettings["details"].ToString() + "?ID=" + ICntNews.ID, strPDate.ToString("MM/dd/yyyy"), ICntNews.GetMetaData("Title"), ICntNews.GetMetaData("Thumbnail"));

                          

                    }

                }

       rpt.DataSource = dtable;

                   rpt.DataBind();

    Will you help us out? How to get the thumbnail image / any sample code over.


    Thanks


  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    20 Oct 2009
    Link to this post
    Hello v,

    You need to resolve the value set to the thumbnail metakey - [Provider]Guid. For more information, please take a look at Resolving the url of dynamic links.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. v
    v avatar
    27 posts
    Registered:
    12 Aug 2009
    21 Oct 2009
    Link to this post
    Ivan Dimitrov

    Thanks. work like a charm. :)
Register for webinar
3 posts, 0 answered