Created
August 6, 2013 23:24
-
-
Save dougludlow/1a65fe1a926cf6d96b94 to your computer and use it in GitHub Desktop.
Move Umbraco nodes from one parent to another.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var old = new Document(1234); | |
var newId = 4321; | |
foreach (var child in old.Children) | |
{ | |
child.Move(newId); | |
} | |
umbraco.library.RefreshContent(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment