Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7972751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:56:49+00:00 2026-06-04T07:56:49+00:00

According to How localization works I can translate pages and give them a different

  • 0

According to How localization works I can translate pages and give them a different URL for every language.

Example from the tutorial:

  • http://butterflysite.co.uk/en-GB/Home/contact/Newoffice.aspx (english)
  • http://vlindersite.nl/nl-NL/thuis/contact/NieuwKantoor.aspx (dutch)

My question is now: Assuming I know which language I am currently in, how do I find out what the URL title for my page is in C#?

What is the best way to use the C1 API to create the correct link to the page in the current language?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T07:56:49+00:00Added an answer on June 4, 2026 at 7:56 am

    Variant No1

        public string GetPageUrl(Guid pageId, CultureInfo locale)
        {
            using(var conn = new DataConnection(PublicationScope.Published, locale))
            {
                var pageNode = new SitemapNavigator(conn).GetPageNodeById(pageId);
                return pageNode != null ? pageNode.Url : null;
            }
        }
    

    Variant No2

        public string GetPageUrl(Guid pageId, CultureInfo locale)
        {
            var pageUrlData = new PageUrlData(pageId, PublicationScope.Published, locale);
            return PageUrls.BuildUrl(pageUrlData, UrlKind.Public, new UrlSpace());
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am putting together a multilingual site according to the tutorial: http://nuts-and-bolts-of-cakephp.com/2008/11/28/cakephp-url-based-language-switching-for-i18n-and-l10n-internationalization-and-localization/ However, the
I am trying to get a multilingual site up according to this tutorial: http://nuts-and-bolts-of-cakephp.com/2008/11/28/cakephp-url-based-language-switching-for-i18n-and-l10n-internationalization-and-localization/
According to this post in Recursive Descent vs. LALR , any LALR(k) can be
I have a question about localization how can i do localization lets say that
I have a .NET 4.0 WPF application where the user can change the language
According to this post a typical firefox user has 2-3 tabs open. How can
according to netbeans documentation to check out from svn: Checking out Files from a
I want to use timezones according to the babel locale. How can I achieve
According to w3schools group by needs an aggregate_function(column_name) . SELECT column_name, aggregate_function(column_name) FROM table_name
According to Apple , I can combine UINavigationController and UITabBarController using the code, e.g.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.