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

Forums / General Discussions / Get list of localized languages and their URI

Get list of localized languages and their URI

2 posts, 0 answered
  1. Fredrik
    Fredrik avatar
    13 posts
    Registered:
    11 Oct 2010
    28 Mar 2011
    Link to this post
    Dear team,

    I'm trying to find a way to get a list of current enabled languages and their corresponding rewrited URI. What I'm trying to do is a custom link whith custom text as a hyper link, but I want Sitefinity to generate the correct URI.

    I hope you understand what I mean.

    Thanks in advance,
    Fredrik
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    31 Mar 2011
    Link to this post
    Hello Fredrik,

    To get all languages you can use AppSettings and its method DefinedFrontendLanguages. You can use PageManager to get all PageNode objects. Each PageSiteNode has AvailableLanguages property, so you can see whether a give page exists in more than one language.

    Regards,
    Ivan Dimitrov
    the Telerik team
2 posts, 0 answered