Try Now
More in this section

Forums / Developing with Sitefinity / News Detail page Url

News Detail page Url

2 posts, 0 answered
  1. Trung Hoang
    Trung Hoang avatar
    5 posts
    16 Aug 2014
    03 Jul 2015
    Link to this post

    Dear SF supports,


    I'm having troubles when trying to get News item url in another language.


    My website has 2 languages: English and Arabic. In all page, I have 2 links: English and Arabic, which lead user to another language version of current page.


    For news Detail page, I have the following url:  http://localhost/news/detail/2013/03/27/abc for the News whose title = "abc" and publication date = "2013/03/27"


    Below is the method I used to get Arabic url:

    ObjectFactory.Resolve<UrlLocalizationService>().ResolvePageUrl(pageNode, cultureInfo);


    with pageNode is the current Page Node.


    However, it returns http://localhost/الأخبار/التفاصيل

    The url is correct, but it should include news' publication date and url name.


    Could you please support me to fix that.




  2. Velizar Bishurov
    Velizar Bishurov avatar
    143 posts
    24 Oct 2016
    08 Jul 2015
    Link to this post
    Hi Trung,

    You can use the below code to get the details url:


    Please note that you need to include "Telerik.Sitefinity.Services" namespace to use SystemManager.

    using Telerik.Sitefinity.Services;

    Velizar Bishurov
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
2 posts, 0 answered