Questions tagged [pipelines]
Questions about working with all the Sitecore pipelines: custom processors, patching, configuring, ...
188
questions
2
votes
3
answers
66
views
What is the correct pipeline to process redirection logic
Our Sitecore application (v10.1.3) is hosted on Sitecore Managed Cloud. The following is the reason for implementing redirection for page requests.
The website's original domain/URL was https://...
5
votes
5
answers
114
views
How can I access the route node and iterate through placeholders from Layout service
I am working with Sitecore 10.3 and SXA, and I need to access the route node from the Layout Service response within my custom code so that I can iterate over all the placeholders in response to ...
4
votes
2
answers
70
views
Using Dictionary Tokens on Internal Link Query Parameters or Anchor Tags
I am on Sitecore XP 10.2 and am trying to figure out the best way so that I can alter the text of the query parameters or anchor tags for a Sitecore Link. We use GlassMapper, but also have some ...
2
votes
2
answers
68
views
how to automate and implement Rich Text Tile pictures to be loaded as lazy in Sitecore
I am trying to implement and automate Rich Text Tile pictures to be loaded as lazy functionality. Also to mention I am not using SXA.
Is there any way to automate it instead of manually adding ...
0
votes
3
answers
54
views
How to apply robots.txt file Subdomain Site
We've implemented the application across multiple site, adopting the subdomain model.
In essence, we have the primary site and its associated sub-sites.
The primary site is developed using SXA, while ...
0
votes
1
answer
40
views
Sitecore intranet not displaying images 403 no access
I’m working on a project where we need to set up preview sites for business managers to review content before publication. These preview sites require users to be signed in with their Azure AD ...
1
vote
1
answer
36
views
getting error "invalid date format" while updating the general link fields in arabic version
I am using sitecore 10.3 jss with sxa site. I got error while updating the general link field and save in wesite in arabic version
The last thing I did on the instance is deploying the below redirect ...
1
vote
1
answer
70
views
Change ItemNotFoundUrl Setting in sitecore
I must display my custom page content if the media library item(ex: pdf files) is not in Sitecore. I am able do it by changing the value of these two settings in sitecore.config
<setting name=&...
1
vote
2
answers
65
views
Issue with Omitting bucket folders from URL
We're experiencing an issue with the Link Manager Configuration for Bucket URLs after updating our Sitecore JSS to version 21.7.1.
Previously, our URLs were structured like this: <mywebsite>/...
0
votes
2
answers
114
views
How to redirect the Home page if session has null using Pipeline
We've set up the website using session data, and each page relies on this data.
Should the session data be missing, I must redirect the user back to the main page. This scenario arises when a user ...
0
votes
1
answer
61
views
Automatically Replacing Spaces with Dashes in URLs within RTE
I'm working with Sitecore 10.1 and need help with the Rich Text Editor (RTE). I want all links added to the RTE to automatically replace spaces with dashes in the URL to maintain consistency and meet ...
0
votes
1
answer
69
views
Custom Sitecore item delete handler
I need to execute a logic before the Sitecore item deletion event or before Sitecore shows delete warning. I am trying
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
&...
0
votes
2
answers
77
views
Custom MVC Routing in Sitecore does not read Sitecore context language
I am trying to create custom routing for multiple languages. Created processor like below image. Problem is that it does not give exact context language but gives "en" as language name. Can ...
0
votes
1
answer
64
views
Is there a way to abort httpRequestBegin pipeline in controller?
My manager insisted there is a way to abort the custom item resolver pipeline component inside a controller after the controller failed to find an item from a search service.
I do not think it is ...
0
votes
4
answers
66
views
Trouble getting GetPageItemProcessor implemented
I asked a question "how to trigger 404 in controller", my post was closed and pointed me to an early question which was considered answered. I followed that link and tried to implement ...
0
votes
0
answers
41
views
How to trigger 404 inside MVC controller - SiteCore 10.1? [duplicate]
We have a custom pipeline 404 processor, inside that processor, we do not set status code to 404, instead, we set Response.TrySlipIisCustomErrors = true and also set Sitecore.Context.Item = item404; ...
2
votes
3
answers
462
views
AuthorizationFilterAttribute OnAuthorization method is not firing in Sitecore 10
Authorization filter attribute is not firing
public class AuthenticationRequiredAttribute : System.Web.Http.Filters.AuthorizationFilterAttribute
{
public override bool AllowMultiple
...
0
votes
1
answer
68
views
Theme is not switched when overriding DoGetThemeItem
I am implementing this article so I can switch themes based on the a cookie or query string. My code is as follows.
protected override Item DoGetThemeItem(Item item, DeviceItem device)
{
...
1
vote
2
answers
133
views
Sitecore KickUser Programatically
I have implemented some custom functionality to implement to kick the user, which is working fine but when I see sitecore/client/Applications/LicenseOptions/KickUser.aspx page then that kick user ...
1
vote
1
answer
35
views
Is it possible to prefill workflow comment template based on value of content item?
In my content item, I have a field called "MyField." Additionally, the workflow comment has its own field called "MyField." I am wondering if it is feasible to automatically ...
1
vote
2
answers
156
views
Custom item:saving breaking Final renderings Sitecore 10.2
Working in Sitecore 10.2, we have a new site that we've added custom processors to to update fields on item:save that need to be automatically generated. We have a very simple processor that sets a ...
1
vote
1
answer
75
views
Updating other item in the custom publish pipeline not working
I am trying to update an item inside custom publish pipeline in Sitecore 10.2. It does get updated once but if pipeline runs again the item is not updated.
The item update code gets executed every ...
0
votes
2
answers
588
views
GetImageFieldValue in RenderField pipeline not able to hit
While extending Sitecore.Pipelines.RenderField.GetImageFieldValue not getting hit in my code.
Even my component contains media field in it, any specific reason ?
OR is there any other way to replace ...
0
votes
0
answers
14
views
Get Url with section value in HttpRequestProcessor [duplicate]
I am building redirect module where i need to get the request url from browser with section value.
Example : https://www.site1.com/news#category1.
I am not able to get #category1 in code using args....
0
votes
1
answer
140
views
RenderField pipeline not giving single and multi line field type
I was trying to extend RenderField pipeline, I tried below, but still not getting single-line or multi-line Field TypeKey. I am using Sitecore 9.1 initial release is anything I am missing?
-Sitecore....
0
votes
2
answers
279
views
Get complete url in HttpRequestProcessor
I want to get the complete URL in HttpRequestProcessor pipeline.
When I hit https://www.abc.com/#section-1, currently args.RequestUrl is not returning the section path. How to get complete URL with ...
1
vote
3
answers
434
views
How to Recall a Sitecore Pipeline and Processor?
I want to call EnsureDevice Processor from EnsureSessionContext pipeline after certain conditions met.
public virtual void Process(PipelineArgs args)
{
string countryCode= ...
1
vote
1
answer
97
views
One or more local models conflict with the xDB service layer. 'AssemblyFacetKeyModel, 1.0' does not have a remote version'
I have added a new model for my custom facets but it's throwing the following exception while calling the GetClient() method.
One or more local models conflict with the xDB service layer. '...
3
votes
1
answer
186
views
What pipeline is triggered when a form is created in the forms builder
I just tried to create a form based on template that was created before. The mail campaign is set up correctly in the template, but the problem is that all token mappings are lost for the new form.
I ...
1
vote
2
answers
201
views
Call Action Method in all pages using Pipelines?
Is it possible to use Pipelines and call specific action method on every page?
I'm trying to build a Modal Popup based on User IP. it will redirect the user to a user specific country.
But this Action ...
4
votes
1
answer
232
views
How to replace custom token that is in RichText field using Sitecore JSS?
I have a custom token %tokenname% in single line text and richtext fields. I would like to replace the token with some custom value in the Sitecore JSON rendering. Please see some example data below:
{...
1
vote
0
answers
36
views
Redirect mapping media item in Sitecore SXA [duplicate]
I have already asked the question related to redirect mapping of media item in Sitecore SXA. This question is related to get this functionality though custom code or pipeline. I have not found any ...
0
votes
0
answers
123
views
sitecore language cookie overwrite in arabic version
I am using Sitecore 10 with JSS Angular app, I need to set site language cookie {{mysite}}#lang to be HttpOnly so I have created the HttpRequest pipeline processor.
public class CookieProcessor : ...
0
votes
2
answers
387
views
Sitecore pipelines initialize processor initializeroutes runtime error [duplicate]
Getting Sitecore pipelines initialize processor initializeroutes runtime error:-
causing runtime error
0
votes
0
answers
160
views
Sitecore Helix Template(Anders Laub) Azure DevOps Pipeline builds not bringing Views from Feature projects
I have a Sitecore 9.3 installation on a VM and have Visual Studio Code on the host machine. When we build, then code gets pushed from host to VM IIS. This works fine on local to VM.
I have a pipeline ...
0
votes
0
answers
98
views
HttpNotFound with custom 404
In one of our MVC controllers we have:
public ActionResult Index()
{
return HttpNotFound();
}
This HttpNotFound will set the StatusCode to 404. We would like to 'catch' this 404 status code and ...
0
votes
1
answer
248
views
How to read parameters from WorkflowPipelineArgs
The above action is configured with parameters. How can get the parameter value in WorkflowPipelineArgs?
args.parameters returning the null value.
1
vote
1
answer
482
views
Clearing Sitecore cache on publish for specific items
I want to clear custom cache when items at specific path are published. Here is what I tried so far.
Solution 1:
I created a custom event handler for publish:itemProcessed and publish:itemProcessed:...
1
vote
1
answer
401
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 ...
0
votes
1
answer
274
views
installing SC Hotfix 513229-1.zip using Azure Pipeline
I want to install SC Hotfix 513229-1.zip for Sitecore XP 9.1.1. https://support.sitecore.com/kb?id=kb_article_view&sysparm_article=KB1000489. I want to push this to Release Pipeline. I had done ...
0
votes
1
answer
76
views
Trying to add publishing database for Unicorn Sync when building
So I have two CD servers setup and seems like our Unicorn syncing is not completely setup because in the config it currently just has "web".
So I need to add our "web_uk" CD to ...
0
votes
0
answers
199
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 ...
0
votes
2
answers
845
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:
...
1
vote
1
answer
176
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 ...
1
vote
1
answer
394
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
2
answers
380
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
1
answer
162
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>
...
2
votes
1
answer
789
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
0
answers
16
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
1
answer
400
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. ...