volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Webservices, PageStoreService and LanguageSelector

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

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.