To create your own pipeline in sitecore it is easy, you will need to:
- Add your pipeline and porocessors in the web.config (or externalize it in the \app_config\include folder)
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> <sitecore> <pipelines> <myCustomPipeline> <processor type="MyNamespace.MyProcessor, MyDll" /> </myCustomPipeline> </pipelines> </sitecore> </configuration>
- After you may call it with this code and t will wall all the processors in this pipeline:
PipelineArgs args = new PipelineArgs(); CorePipeline.Run("myCustomPipeline", args);
thanks, very helpful but don't forget to close the Processor tag ;)
ReplyDeleteUpdated! Thank you Tony.
ReplyDelete