Get list of localized languages and their URI

Posted by Community Admin on 03-Aug-2018 13:58

Get list of localized languages and their URI

All Replies

Posted by Community Admin on 28-Mar-2011 00:00

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

Posted by Community Admin on 31-Mar-2011 00:00

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

This thread is closed