Sitecore has set of pre-defined pipelines which will execute once you entered url. You can trigger any actions before or after pipeline execution.

You can write custom pipelines as ..

After:

<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
    <sitecore>
        <pipelines>
        <preprocessRequest>        
                <processor patch:after="*[@type='Sitecore.Pipelines.PreprocessRequest.StripLanguage, Sitecore.Kernel']"type="SitecoreDemo.Test.Pipelines.SomeProcessor, SitecoreDemo.Test" />
            </preprocessRequest>
        </pipelines>
    </sitecore>
</configuration>
Before:
<configuration xmlns:patch=”http://www.sitecore.net/xmlconfig/”>
<sitecore>
<pipelines>
<preprocessRequest>
<processor patch:before=”*[@type=’Sitecore.Pipelines.PreprocessRequest.StripLanguage, Sitecore.Kernel’]”type=”SitecoreDemo.Test.Pipelines.SomeProcessor, SitecoreDemo.Test” />
</preprocessRequest>
</pipelines>
</sitecore>
</configuration>
Here is the few pre-defined pipelines
 pipelines

 

 

 

 

 

 

 

 

 

There are few more pipelines…


Leave a Reply

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

Related Posts

Fake DB

How to do unit testing for media items in Sitecore + xUnit testing : Fake DB

Unit testing in Sitecore is a tricky one since you need create an items in Fake dB. I didn’t find much information about Media items unit testing and below piece of code may help you! Read more…

Fake DB

PageContext item in Sitecore Fake DB + Unit test cases

I tried to set PageContext using  RenderingContext.EnterContext but didn’t work using (RenderingContext.EnterContext(new Rendering(), contextItem)) { I have set it using  ContextService.Get().Push(pageContext); Here is the code, which may help you using (Db db = new Db using (Db Read more…

Sitecore 8.2

Mocking a reference field in Sitecore Fake DB for Unit test cases

I’m working on Unit test cases and mocking a reference field could be a complex task. Here is the code, which may help you [Fact] public void ReferenceFieldMockingTest() { ID newTemplateId = ID.NewID; ID referenceItemId Read more…