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 ...
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 ...
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>:...
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....
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 ...
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 ...
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 ...
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, ...
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/...
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 ...
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 ...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
processor × 13pipelines × 6
sitecore-client × 1
xconnect × 1
experience-editor × 1
azure × 1
configuration × 1
exm × 1
media-library × 1
publishing × 1
caching × 1
events × 1
dependency-injection × 1
datasource × 1
controller × 1
routing × 1
processing × 1
branch × 1
cdn × 1
rendering-parameters × 1
custom-route × 1