Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
ServiceLocator.Current.GetInstance<IContentRepository>().Move(sourceRef, targetRef, ..)
Hello Valdis,
Great this work.
I have another question, if possible to set the position/order where the item should be moved in the hieraquicy?
Thank you
As far as I remember (no compilation done):
var repo = ServiceLocator.Current.GetInstance<IContentRepository>(); var newVersion = page.CreateWritableClone(); newVersion.Property[MetaDataProperties.PagePeerOrder].Value = defaultSortOrder; repo.Save(...);
Hi, I want to move a page type under another one. So I tried to change the parent Link as:
The problem is after running the script, I see my page was not moved.
Can you help me?
Thank you