janeiro 22, 2020
Insert options can easily improve Sitecore content author experience. There are two ways to configure insert options in the item context menu.
From _Standard Values
Ok, let's get started. Click on the _Standard Values template you would like to configure and open the Insert Options section in Content tab. Make sure you have Standard fields checked in the View ribbon buttons.
Click on the Edit link button under Insert options, and select a template you want to add into the insert options. I chose the Option 1 template as an example. Don’t forget to save your changes!
You also can open this dialog window by clicking on the Assign Ribbon button.
Now you are able to view the new insert option in Example Template context menu.
From System Settings
Insert new Insert Option Rule under System/Settings/Rules/Insert Options/Rules in the content tree.
I have inserted an Example Insert Options Rule for demo.
Click on the Edit Rule Link button under Rule. With this, you are able to create your own rules. I chose "where the item template is specific template" as a rule condition and, as the rule action, I chose "add specific insert option."
Click on the Template Link button to choose the template you would like to change, then change the Template Insert Option — you can add multiple conditions and actions. Here, you will be able to configure more than one template at once if they are under the same conditions.
Save your changes and go back to the Example Template Item. You will see that Option 2 has been added to the Context menu.
There you go! You've successfully inserted custom insert options into Sitecore.