Example: Command template code to copy insert options from the parent item
Version:
With the following code example, when a user creates a folder, Sitecore copies the insert options from the parent item to the new folder.
When the user activates this command template, Sitecore invokes the Execute() method, which prepares information about the processing context and passes it to the Run() method. The Run() method prompts the user for an item name, then creates a folder by that name, and copies insert options from the parent item to the new item.