Virtual Happy Hour is canceled this month (March) due to Good Friday.
Try our conversational search powered by Generative AI!
AI OnAI Off
Virtual Happy Hour is canceled this month (March) due to Good Friday.
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