Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Webservices, PageStoreService and LanguageSelector

Vote:
 

Anyone knows how to add a specific language through PageStoreService Webservice (CMS 5).
http://localhost/WebServices/PageStoreService.asmx

When I create a new page I add the LanguageSelector:
Service.LanguageSelector lang = new EPiMigration.LanguageSelector();

After I have created the new page I can get hold of the newly created pageref. But when Im trying to create lang. branch I can't figure out how to set the language:

Service.RawPage newlyRawPage = ws.CreateLanguageBranch(newlyCreatedPage, lang, Service.AccessLevel.NoAccess);

Some of the properties has language unique values.         

Any idea?

//Örjan

#32198
Aug 25, 2009 16:08
Vote:
 

Ok! Found my way out by setting property "PageLanguageBranch" to the current language key. Example:

Service.RawPage newlyRawPage = ws.CreateLanguageBranch(newlyCreatedPage, lang, Service.AccessLevel.NoAccess);
SetPropertyValue(newlyRawPage, "PageLanguageBranch", "sv");

...

 //Örjan

#32211
Aug 25, 2009 23:40
* 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.