Hot to get all the page names for different languages through the API?

Vote:
 
I so know this is gonna be easy, but I can't find an example of it in the SDK and poking around using the VS debugger didn't yield anything useful either... Could someone please tell me those simple magic lines of code that will, given a PageReference or PageData reference, extract all the page names and what language code each name is in please? Many thanks, Andy
#18825
Mar 25, 2008 19:45
Vote:
 
Hi Andy, Are you using EPiServer 4.60/4.61? The globalization support was rebuilt in this version of EPiServer. I found this in the SDK: (EPiServer 4.61 / Globalization / Samples) Get all Languages for a Page PageDataCollection pages = Global.EPDataFactory.GetLanguageBranches(pageLink); The rest should be like a walk in the park, I guess ;)
#19062
Mar 25, 2008 19:46
Vote:
 
Many thanks Matthias, that's exactly what I needed!
#19063
Mar 25, 2008 19:46
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.