Questions tagged [pipelines]

Questions about working with all the Sitecore pipelines: custom processors, patching, configuring, ...

Filter by
Sorted by
Tagged with
11 votes
1 answer
349 views

How can I write my own custom disabler?

Sitecore ships with a bunch of disablers, like the SecurityDisabler and the EventsDisabler, but what if I want to write my own? I have a bunch of item:saved event handlers that run but when I add a ...
user avatar
6 votes
2 answers
2k views

Improving the performance of MyItems Count in Sitecore 8.1

I am trying to increase the performance of Experience Editor and one of the slowest calls is to get the number of locked items. It used to be possible to disabled this in older versions of Sitecore (...
user avatar
1 vote
2 answers
1k views

Response.Redirect in Mvc.requestbegin processor does not end response

Im doing below in mvc.requestbegin processor if (!IdentityChecker.IsUserIdentityValid(args.RequestContext.HttpContext.Request.RequestContext.HttpContext.Request) && !args.RequestContext....
user avatar
  • 397
0 votes
0 answers
26 views

TelemetryConfiguration causing Server Error / Runtime Error [closed]

The line var telemetryConfiguration is causing Server Error in '/' Application. Runtime Error I cannot even set a breakpoint. The Catch is not triggered ... public class InitializeAppInsights ...
user avatar
7 votes
2 answers
2k views

Automatically set datasource when adding a rendering to a page

My goal is to automatically set the datasource of a rendering when an certain rendering is added to the page in the Experience Editor. Since the datasource item is created when the user adds a ...
user avatar
  • 565
11 votes
1 answer
2k views

What is a hook and how does it differ from a pipeline processor?

The title says it all: what is a hook and how does it differ from a pipeline processor? Specifically, I am looking for the following: What is a hook? How/when are hooks triggered? What are hooks ...
user avatar
6 votes
1 answer
795 views

Add custom redirect on SPEAK logout

We are using OIOSAML.NET/dk.Nita for NemLog-in (Danish National Identity Provider) as authentication mechanism for editors. Claims from the federation are mapped to Sitecore users on login, and that ...
user avatar
5 votes
4 answers
5k views

Passing a parameter to controller rendering through URL

I have a component on my page that is a controller rendering and I'd like to pass a parameter in through the URL, but not as a query string parameter. So, instead of site.com/product?id=123, I want: ...
user avatar
  • 2,526
4 votes
2 answers
2k views

Stop executing remaining processor of a pipeline

Suppose i have 5 processor in a custom pipeline. I want to abort the execution of remaining processor if certain condition is satisfied in one of the processor.
user avatar
  • 485
1 vote
2 answers
655 views

How to rework LoggingIn pipelines in Sitecore 9.1?

In Sitecore 8.2, I had pipeline with password complexity check: public class CheckPassword { public void Process(LoggingInArgs args) { var validator = new CustomValidator(); ...
user avatar
  • 163
7 votes
1 answer
1k views

ExecuteRequest is Obsolete, How should we derive from the ExecuteRequest pipeline processor?

So recently noticed a compiler warning on a custom pipeline I wrote to override what pages "Page Not Found", "Layout Not Found" get redirected to (in order to make them site specific pages in a ...
user avatar
7 votes
2 answers
3k views

Sitecore 8.2 with Web API 2

Does anybody have any experience with Web API and Sitecore? I've got a custom database for data not managed by Sitecore, but will be presented alongside Sitecore data. The API calls work fine when ...
user avatar
  • 617
7 votes
1 answer
1k views

Sitecore Logged In Pipeline in Identity Server?

I've created a Two Factor Authentication. It's working by adding our custom processor before Sitecore.Pipelines.LoggedIn.Ticket. But now in 9.1 with Identity Server, it won't be triggered unless I ...
user avatar
5 votes
2 answers
6k views

What is a pipeline?

In the Sitecore configuration, I see a lot of different nodes under the <pipelines> element. I have been through the Sitecore Certification course and don't recall us covering these in detail? ...
user avatar
  • 14.3k
5 votes
2 answers
3k views

Ways to block SC_ANALYTICS_GLOBAL_COOKIE from being deployed?

Because of EU legislation, sometimes you have to block tracking cookies from being deployed. In Sitecore's case this would mean the SC_ANALYTICS_GLOBAL_COOKIE, since it's not absolutely necessary for ...
user avatar
4 votes
2 answers
556 views

Which pipeline is used to change the workflow state internally?

We are trying to add in additional code everytime an item moves into Editing state of the workflow. When does this happen? Would I add this code on item save? Version added? Admin users usually dont ...
user avatar
1 vote
1 answer
128 views

Issues with IdentityProvidersProcessor Sitecore Federated Autentication in multisite architecture

We have 5 websites (e.g. A, B, C, D and E) and with separate clientId in Auth0. We have relevant IdentityProvidersProcessor for these applications. Sometimes when cms is left idle, upon reloading the ...
user avatar
1 vote
2 answers
642 views

MediaCreator.CreateFromStream creates an item with the template "File"

I'm using Sitecore.Resources.Media.MediaCreatorOptions and Sitecore.Resources.Media.MediaCreator to programmatically create media items. I've set the MediaCreatorOptions.FileBased property to false ...
user avatar
  • 617
1 vote
1 answer
450 views

How to add renderings programmatically when another rendering is added

Which pipeline should I use when a new rendering is added in the presentation? I have a scenario to add renderings programmatically if a particular rendering is added in the item. I will write a ...
user avatar
0 votes
0 answers
83 views

Sitecore Save Check Revision Custom processor

Using Sitecore 10 Experience editor save is not working. So i got a custom processor to use instead of the default one from sitecore support. I created a class and added the processor and also a patch ...
user avatar
0 votes
1 answer
160 views

Is there any way to update the response of a controller action by pipeline process?

Is there any way that I can update the response of a controller action by pipeline process? In httpRequestEnd or httpRequestBegin for example P.S: I'm using Sitecore 9 update 1 included EXM. I created ...
user avatar
  • 19