Questions tagged [pipelines]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
27 views

Including width/height in JSS JSON response for Image field

Hopefully a simple question to answer. I am looking in to adding the Width and Height values of a image to the JSS JSON response for an Image field. Is there an out-of-the-box way using some config ...
0
votes
0answers
45 views

Site is stripping all .aspx extensions and giving 404 for /unicorn.aspx, resolving as /unicorn

I'm trying to install Unicorn, but the control panel at /unicorn.aspx as well as any other page I try to browse to with an aspx extension gets the extension stripped. For example if I browse to /test....
0
votes
2answers
53 views

How to get the item currently being published from publishing pipeline

I am trying to build a custom publishing pipeline in SC 9.3 where I need to do some custom operations on the items being currently published. I created a custom pipeline and the code looks like below: ...
0
votes
0answers
17 views

Sitecore Commit Session Pipeline for Sitecore 9.2

There is a requirement from one of the client to capture the live analytics data to extent the Sitecore commit session pipeline. I was analyzing the showconfig.aspx of 9.2 and found the following ...
0
votes
0answers
35 views

Issues with Federated Authentication on a multi site architecture for separate client id per site

For a multi-site architecture, we have separate client id for each site under the same Auth0 Domain. In the IdentityProviderProcessor, whenever I try to assign clientId for the relevant site inside ...
1
vote
1answer
62 views

Get current site in IdentityProvidersProcessor for Federated Login

We have a multisite architecture, and I am working on implementing the federated authentication using Auth0 for visitors login/signup. I need to fetch separate client id and secret per tenant based on ...
0
votes
0answers
38 views

GetStyles pipeline - get rendering context from Final Layout

I have altered the default Sitecore.XA.Foundation.Presentation.Pipelines.GetStyles.GetSiteStyles pipeline to allow the developer to further restrict a usage of the SXA style. Here is the idea: user ...
0
votes
1answer
122 views

Custom Pipeline not being called

We have created a custom pipeline to append extra header details for PDFs. This works well on our local boxes however when we push the code to our UAT server hosted on Azure the pipeline is not called....
2
votes
2answers
174 views

Can't submit facet: "Unknown type" exception

I'm attempting to write a custom facet to a contact in Sitecore 10.1, and I keep getting the following error: Unknown type Description: An unhandled exception occurred during the execution of the ...
2
votes
1answer
84 views

In Sitecore 9.3, SuppressFormValidation is not available, what is the replacement?

We are upgrading from Sitecore 8.2 to 9.3. In our 8.2 solution, there is a patch created with the type SuppressAdfsFormValidation <sitecore> <pipelines> <preprocessRequest> ...
0
votes
1answer
109 views

How to check if a cookie is sent by the browser or added in Sitecore pipelines?

If a cookie is added in any of the sitecore pipelines, it will already be in HttpContext.Current.Request.Cookies in the next pipeline. I have to check if the browser sent any cookies, but because of ...
0
votes
0answers
13 views

My custom pipeline is not executing if trigger from any Sitecore CMS pages other than Experience Platform screen [duplicate]

Here is my issue, I have patched a custom pipeline before the "GotoLogin" pipeline, in order to redirect a user to a custom login page post user's clicked on the logout button. My patch ...
1
vote
1answer
104 views

HttpRequestBegin pipeline not working in SXA multisite

I have installed Sitecore 9.1.1 locally with the domain as "sc911" and in this instance I have installed the client's multisites (using a script that installs the packages), built using SXA. ...
0
votes
0answers
24 views

How to save Sitecore item to Dynamics CRM custom entity on Sitecore form save/submit event [duplicate]

We have Sitecore 9.0.2 installed and set up in our environment, I have installed Dynamics CRM connector 2.0.1 in our Sitecore XP environment and endpoint connection is successful as well from content ...
1
vote
0answers
36 views

How to access IP Geo location services in sitecore 9.3 when Tracking is disabled

How to access IP Geolocation services in Sitecore XP version 9.3, as we are going to disable Analytics tracker in a custom processor (Cookie Consent) which is called before CreateTracker processor of ...
2
votes
0answers
33 views

How to replace/register 'ResizeImageStream' method of class 'Sitecore.Resources.Media.ImageEffectsResize' from Sitecore.kernel dll

I’ve extended SqlServerDataProvider to use the azure blob storage account for storing the media library assests.Everything works fine but Sitecore.Resources.Media.ThumbnailProcessor throws error in ...
1
vote
0answers
260 views

Triggering Unicorn Auto-Publish on Dedicated Publishing Instance

We have a dedicated publishing instance and would like to use it when we run the Unicorn auto-publish. Currently when running the unicorn sync the publish always uses the CM server, even though we ...
0
votes
1answer
119 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 ...
-1
votes
1answer
137 views

GetChromeDataProcessor usage

I am using the GetChromeDataProcessor processor as below. But I have a problem with the GetChromeDataProcessor inheritance. I am getting en error "GetChromeDataProcessor is absolute so Please use ...
2
votes
1answer
67 views

How do I hide a field from display in the Experience Editor's component editor?

I need to hide a template field on both Content Editor and Experience Editor. For Content Editor, I could achieve it by overriding the GetFields pipeline. It still shows up on the Experience Editor. ...
1
vote
2answers
79 views

How can I render a "stub" one-line div for renderings hidden by personalization rules instead of having them completely removed from the DOM?

Our Sitecore 9.0 MVC solution makes extensive use of personalization rules to conditionally hide certain Renderings. But we have marketing automation software that scans the DOM for certain data-...
2
votes
1answer
216 views

How to derive from the obsolete ExecuteRequest pipeline processor

We are upgrading to SC9.3. A custom class UserRequestProcessor which inherits from ExecuteRequest has errors now, as the new ExecuteRequest class in not a parameterless constructor anymore. The ...
1
vote
1answer
368 views

Pipeline to override image field data source

I'm trying to see if I can over-ride the datasource location of an image field for content editors when selecting the data source (not at render time). E.g in the browse media dialog window that is ...
1
vote
2answers
536 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 ...
0
votes
1answer
254 views

Changing the language does not retain the URL and path is chopped off after content item

I have implemented Item resolver for item "quote" [home->quote] like http://sss.com/quote/Certquote/32 by implementing public class CustomItemResolverForQuote : HttpRequestProcessor { .... } ...
2
votes
1answer
326 views

How do I programmatically get an item on which I am performing a publish?

How do I programmatically get an item on which I am performing publishing, irrespective of checkbox being checked (smart publish/ republish or publish related items or publish subitems)? I don't want ...
0
votes
0answers
115 views

Trying to show children of items (with Lock child relationship = true) in a bucket

I am trying to let children show up when you search and open a item that is in a bucket (Lock child relationship is set to true). This blog post describes this: http://www.goblinrockets.com/2015/03/...
2
votes
1answer
332 views

Sitecore 9.2 Virtual User Authentication and SessionId Cookie [closed]

On the project I'm working on, we have chosen to use Sitecore 9.2 XM with Identity Server disabled. Where in the pipeline should I expect to see the ASP.NET_SessionId cookie get generated to be sent ...
1
vote
0answers
48 views

On Item Creation: Warning/Confirmation dialog for invalid Item Name

I want to create a Warning/Confirmation dialog when certain items do not pass our custom item name validation rules. The user can still override the warning dialog via OK/Cancel Buttons. I've tried ...
2
votes
2answers
166 views

Archiving processor does not archive

I've set up a timed processor that takes items of a particular type and archives them if they haven't been updated in two years. I have it logging the correct item that it finds, but the article does ...
0
votes
2answers
622 views

Update Missing Title, Alt Text,Description for Images

We are using Sitecore 8.2 Update 2 and it has a lot of images which has missing Title, ALt text and Description for Images. We performed below action Wrote a Pipeline which inherits from Render field ...
2
votes
1answer
786 views

How can I override the serving of Media Files? (Implementing authentication for media items)

I'm using Sitecore 9.0.2 What I want I'm having an issue serving media files. I would like to check if an user is authenticated before it is served. What I tried I'm currently doing this for all ...
3
votes
1answer
710 views

Could not find method: Process. (My implementation of FilterUrlExtensions)

I'm using Sitecore 9.0.2. I am implementing a class to override Sitecore.Pipelines.PreprocessRequest.FilterUrlExtensions. I wrote my patch config as such: <?xml version="1.0" encoding="utf-8" ?&...
2
votes
2answers
1k views

Could not create instance of type (My implementation of FilterUrlExtensions) No matching constructor was found

I'm using Sitecore 9.0.2. I am implementing Sitecore.Pipelines.PreprocessRequest.FilterUrlExtensions, that in Sitecore 9.0.2 has a constructor with the following signature: public ...
3
votes
1answer
285 views

Programmatically add log information in all renderings (controller, view) HTML

Is there an option to write some logging information, like rendering name and data-source location, in every view programmatically, without go and modified in all views?
7
votes
4answers
776 views

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

Or is it like the difference between hooks and processors? (where a hook is executed by a specific processor) Or are processors used for non-visual/http process and are instead used for things like ...
0
votes
2answers
589 views

Sitecore 9.1.1 null exception on EnsureLoggedInForPreview.Process(PipelineArgs args)

I have got Sitecore 9.1.1 installed on CM and CD server. I am getting the below exception only on the CD server: 5048 12:18:51 ERROR Application error. Exception: System.NullReferenceException ...
4
votes
2answers
298 views

How to catch field reset in item:saving event

I want to make a item:saving pipeline processor that will perform some operations when a item field is reset. I thought this would be simple, but it turned out to be trickier than I thought. Maybe I'm ...
0
votes
1answer
91 views

Item accessible only via display name

As I know, by default, an item is accessible both via name and display name. This creates SEO issue because there is duplicate content. Is there a simple way to disable access via name or I need to ...
-1
votes
2answers
583 views

Issue sending Base64 encoded image in JSON to Sitecore MVC controller method

I wonder if someone could help or point me in the right direction as a Sitecore novice. I have a Sitecore MVC controller wired up to accept a JSON request. Within this request can be a Base64 encoded ...
4
votes
1answer
178 views

Why is SignInProcessor triggered twice?

I've created a custom pipeline to process the login to sent 2FA token. But somehow the pipeline is triggered twice. It doesn't happen with LoggingInProcessor (Used before Sitecore 9). Anyone know why? ...
5
votes
1answer
199 views

Accessing Application_PostAuthorizeRequest via pipeline

I'm working on a scenario that requires I use session state in API calls. I found an article that discusses the setup, https://www.c-sharpcorner.com/UploadFile/dacca2/web-api-with-ajax-handle-session-...
2
votes
1answer
310 views

Experience editor custom notifications with getPageEditorNotifications patching not working

I want to show some custom Error Messages as Notifications right under the toolbar in the experience editor. I've tried to implement the Alerts from Habitat but I am not shure if this is the right ...
1
vote
2answers
582 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(); ...
2
votes
1answer
264 views

Error when overriding validators pipeline to create custom error text

I've been trying to duplicate the solution proposed here and I'm running up against an error that I can't seem to debug. My config patch is here: <configuration xmlns:patch="http://www.sitecore....
7
votes
1answer
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 ...
0
votes
0answers
174 views

How to abort the request execution from GetPageItemProcessor (Sitecore 8.2)

How to abort the execution of the whole request and redirect to another page from GetPageItemProcessor Sitecore pipeline processor. I tried a few options but they all make the execution of the request ...
0
votes
2answers
574 views

Custom Dependency Injection for Sitecore pipeline processor with Ninject

I've implemented a custom Resolver for my Controllers for Ninject which works fine, however this is not working for pipelines. How can I create a custom dependency Injection for Sitecore pipelines? ...
1
vote
0answers
81 views

Sitecore 9.1 Dynamics Marketing List to XConnect Sync pipeline

Dynamics Marketing List sync in 8.2 is inbuilt pipeline and works for our requirement.It looks like that functionality is removed in 9.1 and we need to create our own pipeline for marketing list sync. ...
4
votes
1answer
485 views

Automatically create data source's for controls when user adds page from experience editor

Hello I'm trying to override the AddFromTemplate pipeline to manually create datasources for the components inside the template that i'm using. What I would like to accomplish When a user clicks the ...