Sitecore webinar pipelines and processors

16
Sitecore Architecture Webinar: Pipelines en processors Pieter Brinkman, Solution Architect Sitecore Netherlands http://newguid.net/

description

This is the slidedeck used for the Sitecore Webinar about Pipelines and Processors. More information, video and documentation can be found on: http://newguid.net/sitecore/2012/sitecore-webinar-pipelines-and-processors/

Transcript of Sitecore webinar pipelines and processors

Page 1: Sitecore webinar pipelines and processors

Sitecore Architecture Webinar:

Pipelines en processors

Pieter Brinkman,

Solution Architect Sitecore Netherlands

http://newguid.net/

Page 2: Sitecore webinar pipelines and processors

Introduction Pipelines

Introduction Processors

Demo: Create a custom processor

HttpRequestBegin Pipeline

Modifying Pipelines

Other notes

Summary

Questions

Subjects

Page 3: Sitecore webinar pipelines and processors

A pipeline is a series of steps that implement an operation In other words a pipeline consists of

a chain of operations where the output of each operation is the input for the next one

Two types of pipelines in web.config: <pipelines /> Define system

processes Example; httpRequestBegin

<processors/> Define UI process Example; deleteVersionsUI

Introduction Pipelines

Page 4: Sitecore webinar pipelines and processors

A pipeline is a series of steps that implement an operation In other words a pipeline consists of

a chain of operations where the output of each operation is the input for the next one

A pipeline is a series of steps that implement an operation In other words a pipeline consists of

a chain of operations where the output of each operation is the input for the next one

Introduction Processors

Step 1

Step 2

Step 3

Each step is a Processor The sequence of processors within a

pipeline is defined in web.config Each processor contains a unique

operation All steps together create a pipeline

Page 5: Sitecore webinar pipelines and processors

Demo: Create a custom processor

The questionThe customer want to measure all outgoing clicks from the website.

The solutionRewrite all external links to a

click page that will measure the outgoing trafic.

Here we go!

Page 6: Sitecore webinar pipelines and processors

HTTP Request Begin Pipeline

SiteResolver

IgnoreList

UserResolver

DatabaseResolverBeginDiagnosticsDeviceResolver

LanguageResolverQueryStringResolverDynamicLinkResolverAliasResolver

DefaultResolverFileResolver

LayoutResolver

ItemResolver

ExecuteRequest

MySiteResolver

MySpecialResolver

Sitecore.Context.Site

Sitecore.Context.Database

Sitecore.Context.Device

Sitecore.Context.Language

Sitecore.Context.Item

Sitecore.Context

Page 7: Sitecore webinar pipelines and processors

Change <processor> type="MyClass“

Add new processor step <processor>

Defining a new Class Args contains arguments passed to all steps Include a Process() method OR Define the method attribute -- method="SetSecurity"/>

Modifying Pipelines

Page 8: Sitecore webinar pipelines and processors

Use Sitecore rocks Item templates to help you create the custom processor class.

Create class with Sitecore Rocks

This will safe you time by:

Creating the class with the process method

Creating the config for you

Page 9: Sitecore webinar pipelines and processors

Other notes

Page 10: Sitecore webinar pipelines and processors

One day course covering:

Pipelines

Events

Extending the Editor

Scheduled tasks

All of this with Sitecore Rocks.

Available from 19 september 2012

More info: http://www.sitecore.net/nederland/Support/Training.aspx

Advanced .Net Developer training

Page 11: Sitecore webinar pipelines and processors

One day course covering:

DMS Architecture

Extensive DMS API: Datamodel Page Events/Goals Tags Content profiling Engament plans

Available from 28 august 2012

More info: http://www.sitecore.net/nederland/Support/Training.aspx

DMS .Net Developer training

Page 12: Sitecore webinar pipelines and processors

In September in Amsterdam Two days of inspiration and insight on all things

Sitecore!

Sitecore Symposium 2012

Register now! http://www.sitecore.net/Events/SymposiumEU2012

/

Page 13: Sitecore webinar pipelines and processors

Summary

Page 14: Sitecore webinar pipelines and processors

The video will be posted on Youtube and Newguid.net

All resources used for the webinar will be listed on a blogpost on Newguid.net

Links, resources and video

Page 15: Sitecore webinar pipelines and processors

Thanks you !

Nieuwsbrief : http://www.sitecore.net/nieuwsbriefBlog : http://newguid.net/Twitter : @pieterbrink123

Page 16: Sitecore webinar pipelines and processors

Any Questions?