I have a multi language site with the following structure:
siteroot - en -- home -- login -- etc. - de -- home -- login -- etc.
The content beneath the language nodes is not necessarily the same. When switching languages I want to test if the a paralell language node exisist.
Currently I'm doing the following: - get current path - replace the language part of path e.g. replace /en/login to /de/login - the closest i've found to test the existance of a page is: XPathNodeIterator i = umbraco.library.GetXmlDocumentByUrl("http://localhost/de/login");
Debugging this shows, that umbraco actually hits the database. This can't be the best way to test the existance of a page.
Anybody have a better method at hand?