London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

How do you update an page in code ?

Vote:
0
Hi, I'm in the process of creating a migration tool that transfer content from an another CMS to Episerver (using its webservices). I can add pages (SaveAction.Publish) but I cannot update a newly added page. I want to update newly added pages, because I need to transfer the version of the pages as well. Thanks! Danie
#12571
Mar 31, 2006 16:33
Vote:
0
Hi there Is your problem to get the new created ID? The following code should update the page with the id NewCreatedID PageBase oPage = (PageBase)this.Page; PageData oData = oPage.GetPage(new PageReference(NewCreatedID)); oData.PageName = "New Name TEST"; Global.EPDataFactory.Save(oData, EPiServer.DataAccess.SaveAction.Publish); Or did I missunderstand your question? /snive
#14527
Mar 31, 2006 16:43
Vote:
0
Hi ! Thanks for your help and quick answer ! It worked !
#14528
Mar 31, 2006 17:22
Vote:
0
Hello Daniel, What CMS are you migration from? A migration tool might be interesting for others that use the same CMS. Best regards, Mikael Runhem, EP Research
#14529
Apr 01, 2006 21:27
Vote:
0
Hi Mikael, Our client's current CMS is a custom developed CMS called BEE, which has been developed specifically for the client. I'm planning to migrate the data with the help of Episerver's web services. Kind regards, Danie
#14530
Apr 04, 2006 8:21
* 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.