Add item anywhere in the tree without setting any Sitecore insert options

Consider the following scenario: you setup a new Sitecore template (or branch) which you want to add anywhere in the tree without setting any sitecore insert options

The reason you may want to do this is you have several templates in place throughout the tree, if the insert options can’t be inherited then you would need to update a lot of standard values!

If you dont use the rule engine for this (see this post) you can still achieve the same solution.

In the following example, we want the user to be able to add a Generic Form anywhere under the home node of the site.

Which then needs patching into the uiGetMasters pipeline (/App_Config/Include):


After the talk at the Bristol Sitecore User Group yesterday, Raul demonstrated the rule engine for this kind of thing – the exact same problem can be solved without any code 🙂

You need to set yourself up a rule eg:

Note, one step remains – you need to select the root item.

Leave a Reply

Your email address will not be published. Required fields are marked *