Questions tagged [sitecore]

Use this tag for questions relating to developing within the Sitecore product base.

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

SQL trigger is not getting invoked for [sitecore_forms_storage].[FieldData] Table

For Forms in Sitecore it itself stores the field record in this table ([sitecore_forms_storage].[FieldData]) . I have attached a INSERT trigger to the table ([sitecore_forms_storage].[FieldData]) ...
user avatar
0 votes
0 answers
12 views

An invalid request was sent to the Sitecore layout service

I have a Sitecore 10.3 XP installation and a Visual Studio solution with Helix, where we are implementing components. My local sitecore CM installation is running perfectly fine. However, when I am ...
Sankar's user avatar
  • 11
0 votes
0 answers
20 views

Does Sitecore content editor have native way to display a pop-up box on a page

I want to be able to prompt a user for their first/last and email on a page using a pop-up window. Is there a way to do that rather than just a "flat" form or relying on Javascript? TIA! ...
D Myers's user avatar
1 vote
1 answer
21 views

Sitecore 9.3 Serialization CLI failing to push

We have a sitecore 9.3 project which is not helix and also not headless. I am trying to add serialization cli, I have installed cli and management services (v. 5.1.25). dotnet tool restore and ...
Reza.Hoque's user avatar
  • 2,700
0 votes
0 answers
26 views

Item Tree not being populated from link selector in Sitecore 10.3

Whenever we try to add a link, we get the empty Sitecore Items tree in the dialog window: The tree list only shows the top level /sitecore and nothing else. There is nothing in the log to give any ...
Michael's user avatar
  • 79
0 votes
0 answers
22 views

How to mock a static Sitecore method?

we have a static Sitecore method which is called when we fire the test we need to mock the method result, means when its called it should return our mocked result and shouldn't enter into that method. ...
Nikhil's user avatar
  • 15
1 vote
0 answers
45 views

How to dynamically import a component in sitecore jss inside next js application?

I know the conventional way of dynamically importing a component : const Report = dynamic(() => import('PowerBIComponent'), { ssr: false, }); But since application uses [...path] to catch routes ...
Nishant's user avatar
  • 13
1 vote
1 answer
23 views

Changing a Page Component (Rich Text) in SiteCore

I have managed to create my own style of navigation bar in Sitecore but can't figure out how to extend the width of the Rich Text Page Component I've had to use to input the HTML. Any suggestions on ...
Shiv Walker's user avatar
1 vote
1 answer
16 views

Content tagging Sitecore 9 and 10's: create Custom Folder Structures in Sitecore 9 and 10's TAP Repository for Bucket Management

I have been trying to implement an approach for a custom folder structure in the tap repository on buckets. In this approach, I have commented out the following line: <!-- <setting name="...
vijendar reddy kandi's user avatar
1 vote
0 answers
57 views

Sitecore 10.3 ASP.NET Core headless - can Glass Mapper still be used?

Can Glass Mapper still be used with the Sitecore 10 ASP.NET Core headless approach? Glass Mapper docs appear to be leading to 404's so I'm unsure if this is supported or not. If you have had any ...
MetaName's user avatar
0 votes
0 answers
15 views

invalid from flag value spe: pull access denied for spe, repository does not exist or may require 'docker login'

I am trying to intsall powershall in sitecore using docker but I am not unable to build I am getting the below error: Here is the mssql-int file. Here I added the spe line: and this is docker-...
Chandan Agrawal's user avatar
1 vote
1 answer
39 views

Image from sitecore showing up incorrectly on webpage - changing url hash fixes it?

We have an image on our site that is showing up with black borders on both sides (this is not intended). When I open the inspector and open the image source, and then I change the hash value in the ...
kastaplastislife's user avatar
0 votes
1 answer
32 views

Sitecore Powershell Extension - Trigger Index Refresh

I was trying to trigger a index (the default sitecore_master_index) "refresh" on a context item (using SPE Context Menu). Here is the SPE script: $item = Get-Item . $index = [Sitecore....
Peng's user avatar
  • 345
0 votes
0 answers
14 views

Sitecore - Diferent password requirements for diferent roles

I'm trying to apply diferent password requirements to diferent roles in a sitecore instance. Let's say I have the following roles and requirements: Role1 : 10 characters Role2 : 15 characters and a ...
Diogo Pascoal's user avatar
1 vote
1 answer
41 views

Constant score query for Sitecore.ContentSearch.Linq

I am developing a query for global search to one of my client's Sitecore project. Requirement is searching by 2 way For exact match with the search key with title.(1st priority) Have to split the ...
Newaz Sharif's user avatar
0 votes
0 answers
57 views

Sitecore Experience editor error in xm cloud partial design

Looking for help on solving Experience editor error in xm cloud., We are using xm cloud + next js to build a website. Experience editor is not opening to do edits for partial design, whereas it is ...
Gunasekaran sengodan's user avatar
0 votes
0 answers
31 views

While Sync the sitecore 10 items using docker and container with command line - "dotnet sitecore ser pull" getting the error

Unhandled exception: System.Exception: Unhandled exception ---> System.NullReferenceException: Object reference not set to an instance of an object. at Sitecore.DevEx.Serialization.Client....
hari shankar Singh's user avatar
0 votes
1 answer
76 views

How to change sitecore sxa rendering variants with powershell?

I am working on a POC for a client project and facing challenge to change SXA variants for renderings in bulk. Any guidelines or recommenditions on how can I save my time by doing it in bulk? I made ...
Lisa Gerard's user avatar
0 votes
1 answer
55 views

Sitecore-NextJS - how do I redirect a page with a querystring to not have one?

I have a page in Sitecore htttp://server/MyPage?id=ABC or htttp://server/MyPage?name=PQR&id=ABC I want to redirect to http://server/MyPage/ABC I need to do this through rewrites How would I do ...
Anthony Fernandes's user avatar
0 votes
0 answers
42 views

Get query string params in Sitecore and pass to a NextJS component

I need to get the query string params for a Sitecore page and pass it to a NextJS component, on that page I used this code: import { useRouter } from 'next/router'; export default function MyComponent ...
Anthony Fernandes's user avatar
0 votes
1 answer
39 views

Sitecore create item programmatically with over 100 fields using GlassMapper

I need to write a job to create 1000s of items in Sitecore. I want to avoid, since there are 100s of fields: newItem.Fields["Title"].Value = "NewValue1"; Can I use GlassMapper (...
Anthony Fernandes's user avatar
0 votes
0 answers
12 views

Sitecore XMC Pesonalization

In XMC, I personalized a component using the OOTB rule where the cityname request parameter is equal to boston In Preview mode, this works fine. When I publish and access the page after running http://...
Anthony Fernandes's user avatar
0 votes
0 answers
66 views

While installing sitecore jss with next.js

When I am running the commandjss deploy app -c -d, I am getting the error below, PS C:\development\next-jss-prj\nextjs> jss deploy app -c -d JSS is creating a manifest for sitecore-jss-app to ./...
Reshma Holennavar's user avatar
0 votes
0 answers
41 views

Sitecore Static binding With Placeholder

I have a requirement where I am rendering placeholder dynamically in a view and I wanted to add some of the existing components in that placeholder. So the code goes something like below. for (int i = ...
Deb's user avatar
  • 391
0 votes
0 answers
85 views

Get id of the closest element

Could anyone help to find out the way that i'm using for accessing the closest element id is right and if there is any issues by doing this. I'm using sitecore headless approach. So there is no way to ...
sooraj s pillai's user avatar
1 vote
1 answer
29 views

Retrive children of current item using GlassMapper

if we already have current item in a serivce/repository then how we can get children of that item using glass ? I don't see mvcContext or SitecoreService has GetChildren related method
AfshinZavvar's user avatar
0 votes
0 answers
20 views

Sitecore NextJS Build

I have a Sitecore NextJS project and I have SSG enabled. What's the best way to test this out? Do I just run the next build command and will it generate the static html files? Is that how this works? ...
Anthony Fernandes's user avatar
0 votes
0 answers
95 views

Powershell script in sitecore content editor ribbon button taking so much time on first execution

I have created a custom button in the Sitecore content editor ribbon and I am calling a Sitecore Powershell script by using the command in the "Click" field of button item:executescript(...
Vinesh's user avatar
  • 13
1 vote
1 answer
45 views

Default ribbon tab in Sitecore content editor changed after adding a button

I have created a new button in the Sitecore content editor ribbon. When I open the content editor in Sitecore the newly created button tab opens by default but I want the home tab to be opened by ...
Vinesh's user avatar
  • 13
1 vote
0 answers
71 views

Issue with filtering data using Droplink target item ID in Sitecore 10.2 XP0 GraphQL search query

I am currently working on a Sitecore 10.2 XP0 project and using GraphQL for performing search queries. However, I am facing an issue when trying to filter the data using the where clause with a ...
Hassan Farooq's user avatar
3 votes
1 answer
92 views

Out of box layout service configuration - jss-rendering

In Sitecore (10.2.0) there are serval out of box layout service configurations, such as default, jss, jss-rendering etc. I used default and jss in my headless project, but I'm wondering what is jss-...
Owenc's user avatar
  • 163
0 votes
0 answers
15 views

Problem with changed templates during Sitecore package installation

Our .Net Sitecore (9.01) solution have gone from Web Forms to MVC renderings some time ago. Problem is that all pages have not been converted to MVC and it is starting to be a big problem. While ...
Love Jansson's user avatar
0 votes
1 answer
59 views

make Sitecore PowerShell script which takes input

I have to make an interface to select items from 3 dropdowns and get the list of Sitecore items that are tagged to the items selected from the dropdown, I am a beginner to Sitecore Is it all possible ...
Vinesh's user avatar
  • 13
0 votes
1 answer
136 views

Sitecore headless qraphql get latest version in search query

I am working on sitecore headless project writing a graphql search query to fetch search base results for front-end website, the issue is query is returning all versions items from the master and web ...
Hassan Farooq's user avatar
0 votes
1 answer
30 views

Sitecore versioned image not loading correctly when using language switcher

I'm running Sitecore 10.3 and have a data template with an image field and an item that's based on that template. The site has two languages. When using a versioned image in the EN and th-TH versions ...
Nagaraju Chatta's user avatar
0 votes
1 answer
43 views

Sitecore XMCloud deploy

I am trying to deploy to my XMCloud instance using this command. dotnet sitecore cloud deployment create --environment-id --no-start --no-watch --upload --working-dir . However, I get this error: ...
Anthony Fernandes's user avatar
0 votes
0 answers
99 views

Sitecore 10.3 xp1 LTS2019 Experience editor not working

I have NextJS application built with Sitecore and we are unable to open the Experience Editor. We are getting the following error message: Server Error in '/' Application. The controller for path '/' ...
micro apples in motion's user avatar
0 votes
1 answer
14 views

Which app services to apply sitecore config patch to in Azure

I am working on improving the performance of a sitecore site by implementing caching. On my local development site I was able to apply a patch file to change the size of the data and item caches. Now ...
Peter's user avatar
  • 1
0 votes
0 answers
95 views

Unable to run Powershell script in DockerFile

I have an issue about unable to run Powershell script when building an image from Dockerfile, and still can't resolve it unless I remove the command. Is there any way to run the ps script in ...
Patrick's user avatar
0 votes
0 answers
34 views

Sitecore Database connection using Azure Managed Identity

Has anyone been able to connect to Azure SQL with Microsoft Managed Identity for Sitecore Database connection?
sanjay gaonkar's user avatar
0 votes
0 answers
56 views

Sitecore 10.2, 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 get executed everytime ...
Arun Kumar's user avatar
0 votes
0 answers
41 views

How to get HasChildren or Child count for child collection in Sitecore oData item service API

I am using Sitecore oData Item service and need to get all children of any specific Item using Item Id which is achievable using the below API Endpoint. Version: Sitecore 10.2 https://hostname/...
Syed Ahsan's user avatar
0 votes
0 answers
32 views

Redirect to Virtual Folder with same site different languages in Sitecore

I have requirement to redirect/load page by Geo locating the user and get the language set in CMS for that country and if User Geolocation is not found in CMS settings then load/redirect page to ...
Parvathi Somanahalli's user avatar
0 votes
1 answer
153 views

Add Country code to URL along with Language code

The requirement is to have country code in the URL along with the Language code. Please suggest me the best approach to have country code in URL. we set "languageEmbedding="always""...
Parvathi Somanahalli's user avatar
2 votes
0 answers
49 views

Can a where cause on an IQueryable ever cause another element to be returned, rather than not using it?

I have a cms system (sitecore) where there is a piece of code that gets some items from an index via an IQueryable. Sometimes the query is filtered, sometimes it is not. The code I have looks like ...
Ask Sejsbo's user avatar
0 votes
0 answers
31 views

The provided anti-forgery token was meant for user "extranet\Everyone", but the current user is ""

The following error is being logged "LoginAntiforgeryHandleErrorAttribute bypass: The provided anti-forgery token was meant for user "extranet\Everyone", but the current user is "&...
Narendra Reddy's user avatar
-3 votes
1 answer
973 views

Sitecore 9.3 Setup | xConnect | Failure with SSL SQL Connection

Sitecore setup fails with this issue as in the image. From the Logs we have [------------ XConnectXP0_CreateShards : Command -----------------------------][ShardingTool - Create]:[Path] C:\inetpub\...
psrathore's user avatar
0 votes
0 answers
40 views

Tds is failing to generate code when we click on Re generate code on all items

I am using TDS 6.0.0.36 and I am not able to generate Code. getting below error No changed files. Code generation skipped. ERROR : on line 0 column 0 of file C:\Projects\src\tds\master\Code Generation ...
Uma Ananthu's user avatar
1 vote
1 answer
146 views

ConnectionStrings.Config Referencing Env Var or Key Vault Entry?

Have a Asp.NET forms web application, hosted in Azure, with a connectionstrings.config file that needs to reference a value from a Azure Key Vault. This entry is used by another integrated system, ...
T H's user avatar
  • 492
0 votes
0 answers
29 views

Solr Suggester is not working when _language field is considered as Context Field Query

Solr suggester returns 0 results when context field query is passed. In my case, _language is my ContextFieldQuery. (I am passing the suggester dictionary value & BlendedInfixLookupFactory as the ...
Gajalakshmi Govindarajan's user avatar

1
2 3 4 5
130