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 db = new Db { { new DbItem(“Test Item”, ID.NewID, ID.NewID) { new DbField(“Sample Field”) Read more…

By Praveen, ago

Sitecore default pipelines

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> Read more…

By Praveen, ago

Sitecore Terminology : Basics

Here is the few words we regularly use in Sitecore Items: Everything in Sitecore referred as items. It may be content items, data template items, rendering items, etc.. Data Templates : Represents which data fields that we are going to use. Eg; Single-Line Text, Image … Content Items: Where we can Read more…

By Praveen, ago