Implement an Insert Options pipeline processor
To implement an insert options pipeline processor:
-
Create a class that implements the
Process()
method accepting an argument of typeSitecore.Pipelines.GetMasters.GetMastersArgs
. You can use the following code sample:RequestResponseshellnamespace Namespace.Pipelines.GetMasters { public class ClassName { public void Process(Sitecore.Pipelines.GetMasters.GetMastersArgs args) { //TODO: manipulate args.Masters } } }
-
Add the processor at the relevant point in the Insert Options pipeline definition element at
/configuration/sitecore/pipelines/uiGetMasters in web.config
.ImportantThe location of each pipeline processor in the Insert Options pipeline affects its function. For example, the results of a processor configured before the default
Sitecore.Pipelines.GetMasters.GetInsertRules
processor are subject to insert rules, while the results of a processor configured after theSitecore.Pipelines.GetMasters.GetInsertRules
processor are not. To remove insert options that the context user does not have access rights to use, the defaultCheckSecurity
processor is always the last processor in the pipeline.