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

Problems setting page properties programmatically

hi I'm trying to set som properties on my page programmaically. --- Example: //pdc is a page data collection ((EPiServer.Core.PropertyString) pdc[j].Property["XXX"]).String = "XXX"; //... EPiServer.Global.EPDataFactory.Save (pdc[j], EPiServer.DataAccess.SaveAction.Publish, EPiServer.Security.AccessLevel.Read); --- The new information is visible when viewing the page, but not in edit mode. What have I done wrong? EPi version: 4.31.0.47 Multilanguage on best regards /Stefan
#17325
Nov 30, 2004 11:05
hi everyone Got this info from the support: It should be possible to save a page programmatically. What you have to do is save a version for common properties. It's done by setting page language to MultiLanguageRuntime.COMMONLANGUAGEID before saving it. page.LanguageID = EPiServer.Util.MultiLanguageRuntime.COMMONLANGUAGEID;
#17984
Dec 07, 2004 10:49
* 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.