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

Forums / General Discussions / news links

news links

6 posts, 0 answered
  1. NuToSitefinity
    NuToSitefinity avatar
    140 posts
    Registered:
    01 Sep 2010
    15 Mar 2011
    Link to this post
    I created a custom user control that is using the Fluent API to get the news items, it's pulling out the correct URL for each news item, however, when I click on the link, I get page not found.

    When I drag and drop the news module to my page, I get the same URLS that my control does, however, when I click the link I go to the news "page", what would be preventing my usercontrol from taken me to the news page?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    16 Mar 2011
    Link to this post
    Hello NuToSitefinity,

    The news item url does not include the host url. Please make sure that you concatenate it when you build the single item url. You should also have a NewsView widget on the requested page, because there is no a control that will display the news data.

    Greetings,
    Ivan Dimitrov
    the Telerik team
  3. NuToSitefinity
    NuToSitefinity avatar
    140 posts
    Registered:
    01 Sep 2010
    16 Mar 2011
    Link to this post
    The URL that is showing in my widget matches the URL that the 'out of the box' news widget is showing, so I'm not sure what you mean.

    Also, I have to put the news widget on my news page so it'll show the news item that I clicked on?
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    16 Mar 2011
    Link to this post
    Hi NuToSitefinity,

    If you do not have a control to show the news item it is normal to see 404. Also the news item url is not a page, this is  a dynamic url which does not exist in the SiteMap and it is processed by ContentView based control.

    Greetings,
    Ivan Dimitrov
    the Telerik team
  5. NuToSitefinity
    NuToSitefinity avatar
    140 posts
    Registered:
    01 Sep 2010
    16 Mar 2011
    Link to this post
    then how can I get my news items listed on my home page go to my news page and show the news item in full detail? I created a news page within the SF admin tool, I dragged and dropped the news widget to it, however I still get a 404 when I click on my news item from my home page
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    16 Mar 2011
    Link to this post
    Hi NuToSitefinity,

    Generally you need only to drop the control on a page. Each ContentView control has two modes - Master and Detail, so you can configure the on which page to show the post.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
6 posts, 0 answered