Recently I had to write a migration that moved a few pages and create shortcuts to their new location from the old location. Creating a shortcut from code seemed like a common enough use case but at every turn I was twarted by the fact that every API support was internal and not accessible. In the end I had to resort to direct manipulation of the property collection.
Recently I had to write a migration that moved a few pages and create shortcuts to their new location from the old location. Creating a shortcut from code seemed like a common enough use case but at every turn I was twarted by the fact that every API support was internal and not accessible. In the end I had to resort to direct manipulation of the property collection.
Workaround, if anyone else needs it: