Get list of localized languages and their URI
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
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