New answers tagged jss
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
...
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 ...
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 ...
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 ...
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 ...
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....
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 ...
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 ...
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 ...
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
...
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.
...
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....
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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....
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 ...
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 {
...
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 ...
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 '@...
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 ...
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 ...
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 ...
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/...
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:...
Top 50 recent answers are included
Related Tags
jss × 720nextjs × 91
graphql × 87
layout-service × 41
experience-editor × 38
sxa-jss × 38
sxa × 32
sitecore-api × 26
docker × 25
jss-rendering-sdk × 25
react × 21
sitecore-forms × 20
xm-cloud × 20
sitecore-client × 17
sitecore-react × 15
personalization × 11
azure × 10
rendering-host × 10
multisite × 9
deployment × 9
security × 8
dictionary × 8
placeholders × 7
container × 7
datasource × 6