Create your custom code and letting your class inheriting from Sitecore.Pipelines.HttpRequest.HttpRequestProcessor (In the case of extending the httpRequest pipeline):
The next step you need to do is to add your extension into the settings of the httpRequestBegin pipeline as a new processor. In this case, I want my extension to start after:
You could add your extension directly under the above processor in the web.config file. Though of course best practice is to add a new include file, making sure the new include file is rendered in the desired order:
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> <sitecore> <pipelines> <httpRequestBegin> <processor patch:after="*[@type='Sitecore.Pipelines.HttpRequest.IgnoreList, Sitecore.Kernel']" type="MyExtensions.Pipelines.HttpRequest.Sleep, MyExtensions" /> </httpRequestBegin> </pipelines> </sitecore> </configuration>... finally, load yourDomain/Sitecore/admin/showconfig.aspx to verify your extension is rendered the right place:
No comments:
Post a Comment