Skip to main content
6 votes
Accepted

Whats the difference between /configuration/sitecore/processors and /configuration/sitecore/pipelines in Sitecore configuration?

From Sitecore documentation: Pipelines define a sequence of processors that implement a function, such as defining the Sitecore context for an HTTP request or generating a list of messages in the ...
Marek Musielak's user avatar
  • 24.2k
4 votes

Whats the difference between /configuration/sitecore/processors and /configuration/sitecore/pipelines in Sitecore configuration?

As has been pointed out in other answers, <processors> are used primarily for UI-related activities. They must be executed via Sitecore.Pipelines.PipelineFactory and Sitecore.Pipelines.Pipeline ...
nickwesselman's user avatar
4 votes

Whats the difference between /configuration/sitecore/processors and /configuration/sitecore/pipelines in Sitecore configuration?

Sitecore separates the pipelines into two groups: 1. Those defined within the /configuration/sitecore/pipelines- [These pipelines tend to define system processes.] Examples: <initialize>:...
Abhishek Malaviya's user avatar
3 votes

Replace Sitecore.MediaRequestHandler in web configuration with a patch file inside the handlers

As the media handler is inside the Web.config you need to use transformation for Web.config and for this transformation you need to use SlowCheetah. Just like in the below image, I have created Web....
Swati Gupta's user avatar
  • 3,442
2 votes
Accepted

How to inject a dependency into a Processor

You've not shared the actual classes in question, so I have to extrapolate. But if you have public abstract ClassA { public ClassA(IDependency dependencyOne) { ... } } public ...
Mark Cassidy's user avatar
  • 25.4k
2 votes

How to get the item currently being published from publishing pipeline

You can achieve this by adding a handler to "publish:itemProcessed" event instead: public void YourItemProcessed(object sender, EventArgs args) { var itemProcessedEventArgs = args as ...
Miguel Minoldo's user avatar
2 votes

No Condition definition item could be found for Id

Can you try checking if the missing items are there on the sitecore_marketingdefinitions_master index, because these items are fetched from the marketing index. In case these items are not there, you ...
ckhanna's user avatar
  • 3,709
1 vote

Replace Sitecore.MediaRequestHandler in web configuration with a patch file inside the handlers

The patch:instead attribute is used to replace the existing Sitecore.MediaRequestHandler processor in the initialize pipeline with your custom handler. Create a new patch file, for example, ...
Ajay Gour's user avatar
1 vote

HTTP 500 errors when accessing custom route which can't find a controller

You can: Create custom Contoller Factory overriding SitecoreControllerFactory class. Register custom factory in Sitecore ( https://doc.sitecore.com/xp/en/developers/103/sitecore-experience-manager/...
Marek Musielak's user avatar
  • 24.2k
1 vote

Custom item:saving breaking Final renderings Sitecore 10.2

Creating an item:save event that gets the item being saved using Event.ExtractParameter(args, 0) as Item; interferes with the creation of items from branch templates. The pipelines needs to be aborted ...
Erica Stockwell-Alpert's user avatar
1 vote

How to get the item currently being published from publishing pipeline

Actually context.PublishHelper.GetSourceItem and context.PublishHelper.GetTargetItem are the right methods to use. What they do in the background, they take Options.Language and Options.SourceDatabase ...
Marek Musielak's user avatar
  • 24.2k
1 vote
Accepted

Set cache-control header to public

Cristi answer pointed me to right direction, however at the end I extended GetPageRenderingProcessor. public class CustomBrowserCaching : GetPageRenderingProcessor { public override void ...
Kamil C's user avatar
  • 531
1 vote

Set cache-control header to public

In App_Config/Sitecore.config there is a processor defined for setting browsercaching <processor type="Sitecore.Pipelines.RenderLayout.BrowserCaching, Sitecore.Kernel" /> You can take ...
Cristi Vulturar's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible