Our site will be localized, with several different languages. We currently have code to retrieve specific pages nodes by their url name.
Our current code looks like this:
this.PageManager.GetPageNodes().Where(n => n.UrlName == urlName).SingleOrDefault();
which is using the code from the Developer's Guide for querying pages by URL. This is working fine, and returning a page as long as it has been defined for the current culture.
We would like to be able to get a reference to the default language (English, in our case) version of the page node in the case where the page for the current culture has not been created yet. Is this possible? If so, how do we determine the default language, and how can we use that information to get that specific version of the page?
Thanks for any insight!