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: Multilanguage on best regards /Stefan
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;
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.