Skip to main content

New answers tagged

1 vote

How to get selected dropTree FIeld value from Sitecore using GraphQL

To get info about Targetitem from the droptree field, use this GraphQL query: query ContentCardQuery($datasource: String!) { datasource: item(path: $datasource, language: "en") id ...
Parth's user avatar
  • 11
1 vote

How to get selected dropTree FIeld value from Sitecore using GraphQL

To retrieve details of the selected item in the dropTree, adjust your query to match the structure of the HistoryDetailsItems template. If you need specific field values from this template, modify ...
Praveen Sharma's user avatar
1 vote

What will be impact areas if we don't set targethostname in Sitecore SXA cms in Sitedefinition?

The targetHostName in SXA helps make web links. It's used to create links to pages and pictures that work across different parts of a website system. This is important for: Making sure links go to ...
Rahul's user avatar
  • 53
0 votes

What will be impact areas if we don't set targethostname in Sitecore SXA cms in Sitedefinition?

In Sitecore SXA (Sitecore Experience Accelerator), the targetHostName property in the site definition plays a role in determining how URLs are generated and resolved, particularly in relation to link ...
Praveen Sharma's user avatar
0 votes

How can I access the route node and iterate through placeholders from Layout service

To access the route node and iterate through placeholders from the Layout Service response in Sitecore 10.3 with SXA, you can patch a custom processor into the mvc.getXmlBasedLayoutDefinition or ...
NIKITA VASHISHT's user avatar
2 votes

How can I access the route node and iterate through placeholders from Layout service

You can use the GetLayoutServiceContextArgs to get the the renderings related data from the context items. The code can be like below: using System; using Newtonsoft.Json; using System.Collections....
Debtanu Biswas's user avatar
0 votes

How can I access the route node and iterate through placeholders from Layout service

You can extend the Sitecore.LayoutService.ItemRendering.ContentsResolvers.RenderingContentsResolver class and use the ProcessItem method from the class to enable rendering item fields for advanced ...
Sumit Bhatia's user avatar
  • 5,566
1 vote

How can I access the route node and iterate through placeholders from Layout service

You can achieve it with the help of Custom Resolver. So you need to create custom resolver in your Sitcore instance and you need to assign it to your rendering. Patch Configuration <configuration ...
Praveen Sharma's user avatar
0 votes

How can I access the route node and iterate through placeholders from Layout service

You can read the layout json service json output and modify its output inside the ILayoutServiceResultFactory class, that returns the json from layout service. Create the custom implementation for ...
ckhanna's user avatar
  • 2,631
0 votes

How to get selected dropTree FIeld value from Sitecore using GraphQL

You can use the below query to get the droptree field values query Droptree($datasource: String!) { datasource: item(path: $datasource, language: "en") id name ...
Manoj's user avatar
  • 469
0 votes

Error while Docker setup version is obsolete error during connect

You may need to verify the following things to make it resolve. Run your Windows PowerShell in Admin mode and try again. Open Docker Desktop and verify it's running. Navigate to Windows taskbar. ...
Sumit Bhatia's user avatar
  • 5,566
1 vote
Accepted

Error while Docker setup version is obsolete error during connect

make sure your docker is open in Admin mode or you opened Windows PowerShell in admin mode as well. Here are the steps to do it: 1. Open docker in Admin mode. 2. Solr and Database services stopped. 3....
Praveen Sharma's user avatar
0 votes

Error while Docker setup version is obsolete error during connect

@Rahul you need to run your Windows PowerShell in administrator mode. Here are the steps to do it: Close your current PowerShell window Right click the Windows PowerShell icon and select "Run as ...
Chandra Sekaran V's user avatar
2 votes

Sitecore headless on local environment experience editor facing issue

Mixed Content issue usually happen when your request is over the secured protocol (HTTPS) and the resources you are using are served over HTTP. You can check with these things on your page. Check the ...
Sumit Bhatia's user avatar
  • 5,566
0 votes

What will be impact areas if we don't set targethostname in Sitecore SXA cms in Sitedefinition?

Not setting targetHostName in Sitecore SXA primarily impacts URL generation, site routing, and sitemap creation. Without it, the link provider might generate incorrect or relative URLs, affecting ...
NIKITA VASHISHT's user avatar
1 vote

What will be impact areas if we don't set targethostname in Sitecore SXA cms in Sitedefinition?

When the targetHostName property for the Site is not defined, Sitecore uses the value of the hostName attribute instead. You may face challenges in Site Resolver when you set SiteResolving as true in ...
ckhanna's user avatar
  • 2,631
0 votes

Experience editor issue in Sitecore Headless

Hydration in React happens when the pre-rendered HTML from the server is turned into a fully interactive app by adding event handlers. A common reason for issues during this process is incorrect HTML ...
Sumit Bhatia's user avatar
  • 5,566
1 vote

What will be impact areas if we don't set targethostname in Sitecore SXA cms in Sitedefinition?

The targetHostName in SXA is mainly used for generating URLs, such as links to pages or images across different environments CM, CD, and Preview. To explore more the purpose of the targetHostName is ...
Sumit Bhatia's user avatar
  • 5,566
0 votes

Extending or customizing XM Cloud - Sitecore Pages to support droplink editing

Currently, Sitecore XM Cloud pages do not support editing fields such as Droplist, DropLink, Multilist, TreeList, or any of their variants with search functionality directly within the Pages interface....
Raman Gupta's user avatar
  • 2,649
0 votes

Extending or customizing XM Cloud - Sitecore Pages to support droplink editing

https://blogs.perficient.com/2023/10/25/using-rendering-parameters-on-a-xm-cloud-component/ Untested Based on the information provided in the article you referenced about using rendering parameters on ...
juan_dvd's user avatar
1 vote

Fetch grapghQl response in next js

You are trying to use component-level data fetching in your Next JS app. You can go through these steps to get the data for a component. Write your query like this. export const GQL = ` query { ...
Sumit Bhatia's user avatar
  • 5,566
1 vote

Fetch grapghQl response in next js

you have added endCursor, hasNext in your query. so, If you want to get all the data based on these two variables and in small chunks. You can try this. I already tried for my footer component, there ...
Krushna's user avatar
  • 146
1 vote

Fetch grapghQl response in next js

You can use GraphQLRequestClient to make a request to GraphQL from Next.js application. As a first step, you will need to create GraphQLRequestClient as below. import { GraphQLRequestClient } from '@...
ckhanna's user avatar
  • 2,631
1 vote

Fetch grapghQl response in next js

In your Next.js project, you can use graphql-request to execute the GraphQL query. Here’s an example of how to fetch data from the GraphQL endpoint and display it in a Next.js page. Create a new file ...
Praveen Sharma's user avatar
0 votes

GraphQL Search Query INVALID_OPERATION

In the above query, you're using an outdated method to search for path items, which might not work correctly. Instead of that You can use latest search query to get total count of the Sitecore content ...
Ravi Vadher's user avatar
4 votes

Custom 404 Page in Multisite Environment of Sitecore JSS + Next.js

404 page issue for multisite using Sitecore JSS | Follow the below steps to get rid of this issue. Create _404 page under the Sitecore pages (you can not use 404 as Sitecore page name otherwise will ...
Ravi Vadher's user avatar
3 votes

Custom 404 Page in Multisite Environment of Sitecore JSS + Next.js

Below are the steps to create Sitecore Content Managed 404 and 500 page error in JSS for Multisite setup. Create 404 and 500 error pages inside site home node and update Setting item /sitecore/...
Akash Savalagi's user avatar
7 votes
Accepted

How to add content security headers in Next.js which are configurable from cms side? where to add?

In my recent project, I looked into this scenario I have two solution for this case with cons as well. First, need to add header fields in sitecore cms. Using middleware : You can refer this link:...
Krushna's user avatar
  • 146

Top 50 recent answers are included