7
votes
Accepted
How to solve JSS application error "Error: Valid value for rootItemId not provided and failed to auto-resolve app root item."
Both the dictionary service and the sitemap service need a root item ID. This root item ID must be configured in two files:
<jss-app>\src\lib\dictionary-service-factory.ts
<jss-app>\src\...
6
votes
XM Cloud content delivery in local machine without any Edge url or config change?
Sitecore Experience Edge is a cloud-based CDN, it's not something you run locally. In basic terms, it is a CDN which is used as a replacement for your CD instances and Web database. You can read more ...
6
votes
Create custom RESTful API in XM Cloud
You have touched on an important aspect of XM Cloud that separates it from previous versions of Sitecore. XM Cloud is not the place to be serving custom APIs from, and not the place to be doing the ...
4
votes
Accepted
How do I use the Sitecore CLI with Sitecore Cloud to serialize content?
Add https://sitecore.myget.org/feed/xmcloud-preview/package/nuget/Sitecore.DevEx.Extensibility.XMCloud reference:
dotnet sitecore plugin add -n Sitecore.DevEx.Extensibility.XMCloud
Then you should be ...
4
votes
Accepted
Sitecore XM Cloud local instance Experience Editor "The operation has timed out"
If you are getting slow performance on your Experience Editor locally, you are probably running out of resources in your docker container. By default, docker gives your container 1gb RAM and shares ...
4
votes
Getting the url of the reference fields using Graph QL
To get the URL of selected item in the multilist (reference filed) you can build up a query like below.
Here I'm using the default jss site with running a local docker/graphql instance.
query ...
4
votes
Accepted
Sitecore XM Cloud local setup error with Node.js
I got help from Sitecore Slack Headless group and as suggested I run
npm ci command on the Front-end app root directory. That resolved my initial problem.
Initially I did npm install instead of npm ci....
4
votes
Accepted
Differences between Sitecore XP and Sitecore XM Cloud
Sitecore Forms is not available in XM Cloud yet, but Sitecore are planning to provide a XM Cloud Forms by the end of 2023. Currently you would need to use an 3rd party form provider such a Jotforms or ...
4
votes
Accepted
How to get data from an API using XM Cloud
you can start with the Sitecore documentation about XM Cloud development at https://doc.sitecore.com/xmc/en/developers/xm-cloud/index-en.html
There is a section for Sitecore ASP.NET Rendering SDK API, ...
4
votes
Error when running .net 8 application with XM Cloud in local docker containers (XM Cloud Introduction) - Error NETSDK1045
I first thought this might be related to an old windows version I was running on. So I updated it. But that did not help. So,inspecting the docker image using
docker image inspect mcr.microsoft.com/...
4
votes
Accepted
XM Cloud with NPM workspaces on local Docker throws "Error: EPERM: operation not permitted, symlink"
Workaround 1 - use Windows Server 2022 for the host machine
I managed to eventually find there is an open issue here for this problem.
... the problem exists only when running Windows Server image on ...
4
votes
Source query For General Link Field Type
You can use a query like this to get the children Items of a specific type(You can change the query according to your need). Additionally provide a help text for the Content Authors to use internal ...
4
votes
Accepted
DataSource item's fields object is not coming in the layout service in graphql
Please try and add the below config. This might resolve the issue:
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"
xmlns:set="http://www.sitecore....
3
votes
How to obtain GraphQL access token on local XM Cloud
Couple of things here, There are two types of API
1) Preview API - Which what you are referring to which has a URL https://xmcloudcm.localhost/sitecore/api/authoring/graphql/ide for this to work, you ...
3
votes
Accepted
XM Cloud component with dynamic placeholder
This is a known bug in JSS 21 and has been fixed in JSS 21.0.5.
The bug was that all dynamic placeholder keys must be called container-{*} - this was hard coded into the PlaceholderCommon.tsx file in ...
3
votes
Accepted
PowerShell Elevate Session State on XM Cloud
As a Solution to be able to run Sitecore PowerShell Script, e.t.c. Is change the elevationAction in the config to Allow or Confirm, then you don't need to enter a password.
Set the elevationAction can ...
3
votes
Accepted
NodeJs Container Build in Xmcloud Foundation head
This issue is due to firewall settings and network policy settings on your development machine. Couple of things to try:
Ensure that the Use Docker Compose V2 option is not checked and Use the WSL 2 ...
3
votes
PowerShell Elevate Session State on XM Cloud
The way to do this for local instances is:
Add SITECORE_SPE_ELEVATION: "Allow" to your docker-compose.override.yml file:
services:
cm:
environment:
SITECORE_SPE_ELEVATION: &...
3
votes
Accepted
Is it possible to give a different hostname than xmcloudcm.localhost to the xmcloud docker container?
The short answer is no.
It is not possible to change the default url of xmcloudcm.localhost - this is a restriction as you expected, that the url must be whitelisted for the auth0 redirects. Because ...
3
votes
How to get data from an API using XM Cloud
With xmCloud and Experience edge you need to use graphql to retrieve the published results from the Experience Edge.
If you have a large inventory, you may want also to consider using Sitecore search.
...
3
votes
Accepted
XM Cloud component organization location
The component folder in your Next.js app can be structured as you like. You should create folders in there to logically group your components.
For example, you can put the OOTB components into a ...
3
votes
Accepted
Sitecore Serilization Roles Doesn't Get Created on XM Cloud Environments
This is because of the default way that XM Cloud deploys the serialization. The SCS files are used to generate an Item as Resources(IAR) file and that is layered into the XM Cloud instance.
Roles ...
3
votes
Adding New Custom Insert Options
Yes, there is an Integration Point for SPE to add custom scripts to the Insert Options menu.
You can read more about it in the official docs here.
3
votes
Delete permission for authors to delete items they have created themselves but no other items
this functionality doesn't exist without code customization in Sitecore XMC or Sitecore normal.
You can have such a functionality just if a specific user has rights to create/delete items just under a ...
3
votes
Is there an option to enable custom error details in the Sitecore Experience Editor (XM Cloud)?
To enable custom error details in the Sitecore XM Cloud, you can utilize XDT transformation for the web.config file. In XM Cloud, XDT transforms are supported by specifying the fully qualified paths ...
3
votes
Source query For General Link Field Type
You can check the link type by navigating deep in the props and looking for the link field in addition to the link type you will get more details.
depending on props and field name your code might ...
3
votes
How to migrate Sitecore forms to XM Cloud?
The short answer is, you can't do this.
XM Cloud Forms is a brand new SaaS application that is very different from the MVC Sitecore Forms solution.
If it based on Send and you build the forms in the ...
3
votes
How to migrate Sitecore forms to XM Cloud?
As Richard Seal said above, the answer is no.
Also, when going Composable with Sitecore Saas Products, we need to unlearn a number of things to learn new things. Example, with XM Cloud Forms, we do ...
3
votes
Accepted
Sitecore XMC latest metadata.js script doesn't support monorepo?
I have a support ticket open, but the two changes I needed to make to the OOTB Sitecore app solution were as follows:
Looking at the new getMetaData() call, you can locate the file itself here: https:...
3
votes
How to create a controller rendering in XM cloud
XM Cloud enables headless architecture and provides a front-end application for site delivery. It doesn't include a Content Delivery component, which means you can't create controller renderings in ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
xm-cloud × 154nextjs × 28
jss × 20
graphql × 17
docker × 13
sxa-jss × 9
sxa × 7
serialization × 5
sitecore-client × 4
multisite × 4
rendering-host × 4
solr × 3
powershell-extensions × 3
deployment × 3
layout-service × 3
experience-edge × 3
sitecore-search × 3
experience-editor × 2
coveo × 2
richtext-editor × 2
validation × 2
user-management × 2
language-fallback × 2
horizon × 2
container × 2