output
stringlengths
34
25.7k
instruction
stringlengths
81
31k
input
stringclasses
1 value
No, by default Solr will not return all versions of the item. But it's not really Solr related, it's how Sitecore publishing and web database works. When you publish an item, it only published the latest publishable version of the item is being transferred to the web database, and all the other versions of that item (i...
Item versions to create by date We have requirement to show some text content (rich text field) based on revision date updated (date field). Latest updated content (sorted by date in descending) will be shown at the top . So content authoring will like , next month when I want to create new content with different date...
To patch any version of Sitecore Identity server, you should make use of the sitecoreruntime folder. Within that folder, create a subfolder with the name of the environment you are working on (i.e. UAT). Then create an an environment variable called SITECORE_Environment and give it the same value (i.e. UAT). Within tha...
How can I patch Sitecore Identity Server 7 App Insights Instrumentation Key? I have managed to patch settings like CertThumbprint and the ConnectionString by setting environment variables in the following style: Sitecore_Sitecore__IdentityServer__CertificateThumbprint Sitecore_Sitecore__IdentityServer__SitecoreMember...
Yes, we have implemented Google ReCAPTCHA on Sitecore Forms 10.3 Headless with Next.js. The steps involved are similar to creating a custom field in Sitecore Forms for MVC implementation, as outlined in the official Sitecore documentation here. However, there is a crucial difference in the approach. In the MVC implemen...
Implementing Google Recaptcha on Sitecore Forms 10.3 Headless with React JS could someone please explain or share the documentation or articles for implementing Google Recaptcha on Sitecore Forms 10.3 Headless with React JS? I haven't found any useful articles related to it. For your information, I've been using the &...
Sitecore allows you to specify a locked relationship between parent and child items that are stored in a bucket, so it lends credence to this idea being acceptable: You just need to be sure that this is configured properly and ensure that any possible item that may be created as a nested item within the bucket has thi...
Is it good practice to use bucket items with Children? I need to be able to build a navigation component, using items that are under a bucket. There is a requirement in which the navigation would require different levels of nesting. I was wondering if it's feasible or good to practice to allow editors to nest the ite...
SXA doesn't support spaces in Site names. Here is a link to documentation: https://doc.sitecore.com/xp/en/developers/sxa/103/sitecore-experience-accelerator/the-sxa-site-definition-fields.html When you choose a name for the website, you must avoid using characters that are invalid for the website cookies. Therefore, d...
Federated Authentication with Space in Site Name I have several SXA sites with spaces in the site name. When enabling federated login for a site containing a space in the name I get the following error on the redirect. "Site from query string was not found: My%20Website" It's obviously encoding the space. ...
What you can do is replacing default Glass.Mapper.Sc.GlassHtml with your own implementation that will always use true for outputHeightWidth parameter like: public class CustomGlassHtml : Glass.Mapper.Sc.GlassHtml { public CustomGlassHtml(ISitecoreService sitecoreService) : base(sitecoreService) { } pub...
Glassmapper Set outputHeightWidth = true by default I have a requirement where I need to display the image height and width tags on images. This is also a performance ranking factor for Google Lighthouse. By default, this is set to false in Glassmapper as follows: // // Summary: // Renders an image...
create a new folder under /sitecore/system/Settings/Forms/Meta Data/CSS Class Options and call it Form add new items for every color you want to use for the background colors under Form folder using /sitecore/templates/System/Forms/Meta Data/CSS Class Option template and for the value field use e.g. form-blue-backgro...
Make background color of sitecore form configurable from sitecore I am using Sitecore MVC form in rendering and the requirement is to make user capable of changing form back ground. Need suggestions to achieve it. Can we use rendering param in Sitecore form? Can we create a custom MVC form? I created but it seems to ...
There's a bit of messing about to be done for external "shared" project folders owing to the fact that the file paths are relative to the current project root initially and then when it generates the src\temp\componentBuilder.ts file the paths need to be relative to the location of the that file in the temp f...
What's the best way to register components into the component builder from other directories? I'm working on a monorepo solution which would have a set of Shared components one level above the site folder. I'm looking at updating scripts\generate-component-builder\plugins\components.ts per the documentation and if I s...
Could you please check the below steps might help you? You go to the page where this component consists of the member. Then click on the "..." as shown below. Then click on Edit. Then go to the DateTime Field. Something like below and click on the settings icon. Then you will get a pop-up for Format an...
Content Hub Date Time Field not displaying Time option I am using Sitecore Content Hub and in one of the Content Types we have defined the Field type Datetime Field: However, last two days I observed that while selecting the date the time option does not appear. Previously date and time options were there with a cale...
Found the issue, turns out that it was that docker was not adding solr (or any of the container names) to it's DNS... so when it was trying to iwr against http://solr:8983/*, it could not resolve solr. Found this out as mssql-init was also having some issue resolving the mssql container. Not sure if this is due to the ...
My Solr health check during docker compose up is failing in my local xm cloud instance I am having an issue with starting my XM Cloud Local Docker instance, using the up.ps1 script. It looks to be stopping specifically at this health check: test: ["CMD", "powershell", "-command", "tr...
You need to use different tag names for each of the indexes. Otherwise Sitecore will merge them into one. Use: <customIndex1>customindex_1</customIndex1> <customIndex2>customindex_2</customIndex2> <customIndex3>customindex_3</customIndex3> <customIndex4>customindex_4</customIndex4>
Configuring Sitecore Publishing Service to update multiple custom indexes I'm currently trying to set up the Sitecore Publishing Service on an instance of Sitecore 10.1 (the page for all of the downloads and instructions is here) Without the publishing service, we rely on 4 custom indexes to be updated when an item is...
The ONLY recommended answer The Unicorn configuration files should never be deployed to CD servers. In fact, no part of Unicorn should be deployed to CD servers. Ever. You need to remove them. https://github.com/SitecoreUnicorn/Unicorn/issues/398#issuecomment-1250021066 From a technical standpoint, you could alter the ...
Unicorn throws error in content delivery - Could not find base site 'shell' for site 'unicorn' Sitecore throws below error when loading newly setup instance. Message: Could not find base site 'shell' for site 'unicorn'. Source: Sitecore.Kernel It is mentioned in Git that this issue is fixed in this release https://git...
When you create a data template with a droplist field, you are saying that the list should be available to editors to select from. When rendering, you would only render the value selected by the content editor in the head application. If you want to build a select list that users of the web application would select fro...
How to provide a select list in the web application I have a headless rendering based on this template: Heading: Single-line Text Description: Single-Line Text Background: Droplist (source: is an enum folder) I have a sample item: The droplist works fine here, but when it comes to rendering this in the tsx component,...
If want to know How many times is each rendering used for a specific website. You can use the below Powershell Script with more information for each rendering. Open PowerShell ISE (You can found this in /sitecore/shell/ menu, Development Tools, PowerShell ISE Copy past the script below. Save as &quot;How many times ...
How to find out if a rendering is used in any page Using Sitecore 10.1.3 We have an existing application which uses both SXA default &amp; custom renderings. There are 100+ renderings and many are not in use any more. For each rendering, I would check Navigate > Links. For some, I could see the page item reference bu...
If you want to check if robots detection works at all, you can execute the following steps: install an extension like https://chromewebstore.google.com/detail/user-agent-switcher-for-c/djflhoibgkdhkhhcedjiklpkjnoahfmg?hl=pl&amp;pli=1 to be able to modify your browser user agent switch to user agent to use googlebot na...
How to verify the Sitecore Robot detection feature? Are there any scripts/tools to verify the Sitecore Robot detection feature in Sitecore Forms? If yes, please share some tips.
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 Windows Desktop host machine. This is the case for me where the host machine is Windows 11 Pro and the image is mcr.mi...
XM Cloud with NPM workspaces on local Docker throws "Error: EPERM: operation not permitted, symlink" I'm using the standard monorepo and making it multi-site with each site having its own npm workspace, and then a shared code npm workspace. This is all working fine, it deploys to XM Cloud and runs successfully. The on...
You can create a function to see the full path of Items. The function can be used in stored procedures or ad-hoc queries for reporting purposes. USE [Sitecore_Master] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE FUNCTION [dbo].[GetItemPath] ( @ParentID UNIQUEIDENTIFIER, @CurrentPath VARCHAR(MAX) )...
Which database table contains the Sitecore item path? I thought of query the Sitecore master/web database and get the item path information to display it in dashboard instead reading the data from Sitecore content editor. Could I get some thoughts on here?
As described in the official documentation you will need to change the Elevation Action from Password to Confirm. https://doc.sitecorepowershell.com/security
Unable to use SPE with Azure AD login When I login into the Sitecore CMS using Azure AD, and open SPE, It prompts for the password. I tried entering the Azure AD password but it is not accepted. I have also enabled this \App_Config\Include\Spe\Spe.IdentityServer.config, but no luck. Checked this article, but could not...
Sitecore monitors this API, its a SaaS product provided by Sitecore as the vendor who is responsible for all monitoring and has an SLA with the customer for up time and scalability. There is no need for external monitoring as only Sitecore have access to the resources that provide the API. Currently the content token ...
Queries on Content Hub Experience Edge API on Delivery Platform We have integrated Experience Edge with our Content Hub and currently have exposed the GraphQL API on the delivery platform. We are currently authorizing requests via delivery API. I am seeking some inputs on the below queries: Does Sitecore have any pro...
At the time of writing, XM Cloud Deploy does not support private npm packages or git submodules. If you are using the github/Azure DevOps integration, this will not work. You can make the submodule workaround work by using the CLI to create deployments. You would need to create your deploy pipeline to checkout your mai...
React component import is not resolved in Sitecore deployment environment I am using next/jss starter kit and trying to add a React component inside Sitecore navbar (src/sxastarter/src/components/Navigation.tsx) and push it to Sitecore. The component I am trying to add is taken from another repository that acts as pvt...
Updated Answer Clearing the MediaCache folder and restarting the site fixed the issue permanently; a restart was not enough. Clearly there were files in the media cache that were causing the getMediaStream threads to run out of memory. The exact cause is not cleared, but presumably it was due to corrupt files. Original...
Media field attachment preview image is full-sized instead of thumbnail-sized I have content management sites (Sitecore 10.2.1) in 3 different environments. On my non-production sites, my image media library items show reasonably sized attachment previews such that I can easily view the whole image: Note the small im...
Check the &quot;Base Url&quot; Field in your &quot;Email Configuration&quot; in Content Tree and change it to your domain
Images and Links in EXM message are not coming when receiving the e-mail I am working on Sitecore 10.3 and created automated message from EXM, I added custom html in Body Text component and added image and link from Sitecore media. but when I sent the email, , I received the e-mail without images and links, not comin...
Finally, I found the 100% solution for that. Sharing it here to benefit the community: IWebMClient _mclient = MClientFactory.CreateMClient(endpoint, oauth); var uploadSource = new LocalUploadSource(&quot;C:\SomeFolder\New.png&quot;); Dictionary<string, object> action = new Dictionary<string, object>(); action.Add(&quot...
Upload a new version of an asset using the WebClient SDK in Content Hub Is it possible to generate/upload a new version of an asset using the WebClient SDK in Content Hub? I am aware that this can be done through the Portal, but I need to perform this task programmatically.
I ended up resolving this by using a Scriban variant with the promos. With IGenerateScribanContextProcessor I was able to point each action link to the appropriate site. Works great.
General Link Field Reuse with Multisite I have a Sitecore 10 SXA multisite setup that uses delegated areas. Each delegated page (item) contains several promos with datasources set to the main site. Within these promos we have internal links to various delegated items shared to all sites. I want these promos locked dow...
While not intuitive, you can do this with the Regular Expression validator. Add one to your field. Use the expression ^({[^}]+}\|?){2,5}$ (2,5) is thw boundaries you mention in your question. Source: https://mskutta.github.io/2019/08/20/sitecore-how-to-limit-the-number-of-items-selected-in-a-treelist-field/
How can I define a limit on number of items added to a Multi-list I have a Template that contains a multi-list, and the client wants said multi-list to have a limit on the count of items added to that multilist: minimum of 2, maximum of 5. Is there an OOTB validation rule that can do this? I've looked through the samp...
Can you try adding below code while retrieving field value. using (new LanguageFallbackFieldSwitcher(true)) { // Retrieving Item's Field Value } Also make sure the database do not contains any entry for the item in the fields table. You can check for the corresponding entry in the db by executing below SQL Query:...
How programmatically get field value from fallback language when field level fallback is enabled? I'm using sitecore 9.3. I set en as fallback language for en-IE. I have enabled field level fallback on the template level. I have item with 2 fields. For en-IE: Text_1 - is empty, so value from en is displayed Text_2 - ...
I don't think it is possible using token because token will allow us to dynamically add values to fields, according to the item that is being created by the Content Author. So you can create your own ItemSave handler which will change this field for particular item templates. You can follow below link for more details....
How to update a link field when a drop list item is selected? Is there a way to dynamically change the value of a Template field in Sitecore based on other template field selected value. For example, let's say we have a template that has the following fields: State (Type drop list) Link (Link) Expectation is : when to...
As you want to run this as scheduled job, so you can ensure that there is a sufficient gap between the last run and the new run. You could perhaps run it once a day. So, I feel that there is no need to check the index state. You should have a null check in place for indexName. If the indexName is empty or null, you sh...
What to check before rebuilding a Sitecore index via scheduled task? I'm trying to do something that I don't see a lot of descriptions of. For our installation of Sitecore, we have a special index, for managing pictures via a service called &quot;Digizuite&quot;. This index breaks once in a while, and then needs to be...
You can try this solution let button = document.querySelector('button[type=&quot;submit&quot;]') button.addEventListener(&quot;click&quot; , function () { button.disabled = true; })
How to Disable Submit Button After Click in Sitecore Forms? I'm working with Sitecore 10.1 and facing a challenge with Sitecore forms. I want to disable the submit button right after it's clicked. I've attempted some script solutions but haven't found a reliable way that integrates smoothly with Sitecore's form handli...
Its known issue, method not found: Microsoft.Extensions.Caching.Memory can you please try the following and verify the same: Open your Sitecore website folder and navigate to {sitecore-instance-directory}\App_Config\Sitecore\Marketing.Xdb.ReferenceData.Client rename Sitecore.Xdb.ReferenceData.ClientCache.config to Sit...
Sitecore Content Hub: Method not found: 'Void Microsoft.Extensions.Caching.Memory Error I have installed Sitecore 10.3.1 and now I am trying to Install Sitecore Connect for Content Hub on-prem as mentioned in this document https://doc.sitecore.com/xp/en/developers/connect-for-ch/51/connect-for-content-hub/install-site...
Hi @lahiru Lanka Rathnayka, As you see in below screenshot You are able to drag and drop because its available in Sitecore, but corresponding named component on react site is missing. And that also means that components like &quot;FeaasWrapper&quot;,&quot;BYOCWrapper&quot; are not created by us (developers), but those...
Steps to follow from Sitecore side when following BYOC (Bring your Own Component) Approach I am following the documentation to bring and register a react component and reuse it in Sitecore component editor. https://doc.sitecore.com/xmc/en/developers/jss/latest/jss-xmc/walkthrough--registering-an-external-react-compone...
In the config file you mentioned there is a setting called Unicorn.MaxItemsToQueue <!-- Max number of items that will be processed individually by the publishing code. If number of changed items in a sync operation goes > MaxItemsToQueue, a system Smart Publish will be executed instead Set this value to 0 ...
Unicorn publishes all the items under the root Sitecore item after unicorn sync When we run the unicorn sync for limited items based on the unicorn configuration's predicate rule then in SPS we noticed that it is publishing all the items under top root sitecore {11111111-1111-1111-1111-111111111111} The auto publish h...
The issue appears to have resolved on its own approximately 10 minutes after reinstalling the module. The cause it not clear, however, caching appears to be a likely factor.
PowerShell commands not running in ISE I am trying to run a simple command on my CM 10.2 instance running on an App Service: Write-Host &quot;test&quot; However, the script never seems to run, even if I set a breakpoint and debug. This works fine on other environments. The working environment and the broken environmen...
Tasks do not run on databases, the tasks run on the Sitecore instance. If your Task Scheduler is enabled on your Content Delivery instance to use your web database, then it will execute any tasks that are configured. But, Sitecore PowerShell Extensions is not enabled on Content Delivery instances by default. The defaul...
Does powershellScheduler task run on web dbs? If I publish powershell task scheduler item to target dbs...will the task the task run separately on all dbs?
In the web config you will find security:define configuration which explain security definition: <!-- SUPPORTED MEMBERSHIP CONFIGURATION FOR CONTENT DELIVERY Specify the membership configuration that you want this server to use for Content Delivery role. The supported options are: Sitecore ...
"security: "require"="sitecore" in sitecore config What does &quot;security: &quot;require&quot; in sitecore configuration mean? <sitecore role:require=&quot;Standalone or ContentManagement&quot; security:require=&quot;Sitecore&quot;> Does it mean access to sitecore or user should be in Sitecore domain?
Here is an article explaining how to do it https://laubplusco.net/inheriting-renderings-sitecore/ I am briefing the process here, you can find more details with code in articles itself. Add a placeholder in a rendering/sublayout where you wish to inherit your rendering Add this placeholder key and rendering id in a Co...
Cascaded/global sublayout components in webforms? I'm working on a site that is on Sitecore 10 but still uses webforms for the main layout and sublayouts. I'm trying to figure out if it is possible to add a placeholder to the footer where the authors can add or remove sublayouts, and have this content display on EVERY...
Make sure that in your data template, the Source property of your GeneralLink field is set to query:$linkableHomes Next make sure that in your /sitecore/Content/<Tenant>/<Site>/Setting item you have the Link Settings option set to All linkable sites or Linkable sites in site collection. By default this will be Itself o...
Insert Link SXA Current Site Item is not displaying We have maintained SXA multisite with the same tenant. In Settings, we have selected the &quot;Linkable Site with a tenant&quot; option in the Link settings. Site A Site B In Site A, from any CTA link if I try to select the insert link option Site A home and child i...
You can follow workflow action to achieve your target. Please follow below steps to achieve this. Create a ACTION (using template: /sitecore/templates/System/Workflow/Action) under the Final Workflow State Under Type String – set the namespace and class name Then write your custom code according to your requirement, b...
Custom Sitecore Pipeline is not triggering when publishing to Edge Publishing from Sitecore 10.3 to Edge I have a custom pipeline that updates the Last Published field with in Sitecore. When I publish to the WEB, it works as expected, but when I publish to Experience Edge, it doesn't update the Sitecore field. <pipeli...
I had the same requirement to create a custom popup on the Sitecore client that looks like this and here are some general steps you need to follow. Go to core database and open this path. /sitecore/content/Applications/Content Editor/Ribbons/Chunks Using insert from template, Create new chunk item (template path : /...
Custom popup / Sitecore client I've requirements to create a custom popup, everytime the author saves an item. The popup has text and two buttons Proceed or Cancel. Any guidelines on how this can be done?
There is no OOTB API for Sitecore Forms to export data to given form. There is Forms Client API but it only gives you list of form fields not the values -> https://doc.sitecore.com/xp/en/developers/102/sitecore-experience-manager/work-with-the-form-client-api.html You can build your own API or extend layout service. Ow...
Is there a rest api to get a list of sitecore forms and export data for given form? I need to develop a page to show a list of sitecore forms tagged this login user and then allow this user to export data as csv we do not want user to go to forms and export data there so we need a way to access forms list and forms da...
Here are a few options. Show-Output and JavaScript (source) #... your code here with various helpful Write-Host outputs Show-Result -Text # After the Show-Result window is closed, this triggers the redirect $script = ('window.top.location = &quot;/sitecore/shell/Applications/Content%20Editor?fo=' + $item.ID +'&quot;'...
How to open a newly created item in Content Editor via SPE script via the Insert Item integration? A item is created as part of a SPE script via the Insert Item integration, very similar to the current workflow in Sitecore -- the new item is added as a child of the item we inserted a new item on, except the script per...
Do you want to add it under the Normal dropdown? If so first check your RTE Profile, which is being used in the template. based on that. Change the DB to Core Navigate to path /sitecore/system/Settings/HTML Editor Profiles/<Your Rich Text Profile From template> change the h2 value and add <h2 class=&quot;h2>
Add class option in rich text editor in h2 tag I added a class option in the rich text editor in the content tree. The requirement is to add this class in <h2> tag. But it's adding a class in the <span> tag by default: The requirement is to add this class in h2 tag. Is there any settings for that ?
After going through your screenshot it seems that you haven't added closing parentheses( ) ). Try out this query hope this helps { search( fieldsEqual:[{name:&quot;title&quot;, value:&quot;Si*&quot; }] rootItem:&quot;/sitecore/content&quot; ) { results { items { item { id ...
Sitecore Graph QL Search getting unknown argument "FieldsEqual" I am trying to execute search on Graph QL. When I try &quot;FieldsEqual&quot; query, I am getting unknown argument in &quot;Query.Search&quot;. Any help to overcome this issue will be highly appreciated. SC Version is 10.3
In regards to the Errno 50000: Sync token is no longer valid for [Contacts] table error, Rebuilding the xDB index in Solr should fix it but regrettably, it could not fix my issue. Indeed, when rebuilding the xDB index, the rebuild collection will be updated, and you will need to swap the cores to ensure that the newly ...
xdb_collection.GetContactsChanges-Sync token is no longer valid for [Contacts] table After rebuilding the xDB search index in SOLR Cloud, the data is not reflecting in the xdb_internal collection but is being updated in the xdb_rebuild_internal collection. I have checked the Application Insight and found following exc...
I don't know how the field item is retrieved in your PowerShell script, but I had this error when an item was read using Sitecore API and was not wrapped with automatic SPE properties using Initialize-Item: The Initialize-Item command wraps Sitecore item with PowerShell property equivalents of fields for easy assignme...
Can't edit field directly in some cases using Sitecore PowerShell Extensions I am trying to edit an item of template type /sitecore/templates/System/Forms/Fields/Input. This item has a field named Default Value. Why does this work: $DefaultValueFieldName = &quot;Default Value&quot; $myInputFieldItem.Editing.BeginEdit(...
For those who are facing the same issue. I have received a message from Sitecore Support with the statement: This issue has been officially logged in the Content Hub product's system. The bug report is identified by the reference number: MONE-40422. They have not specified a timeline when it will be solved and relea...
Content Hub required field not showing message when placed in different column We are using Sitecore Content Hub Cloud. And have set up multiple screens to create a new entity. For the validation, we set up multiple fields that are required. To display this we have a creation page with multiple columns. When saving th...
Afaik Sitecore has Production and Nonproduction license. The production license is not expiring. Usually few months before is expiring you will receive from their sales representative calls or emails to inform you about license is expired. Non production license or partner license will expired and you will receive a ye...
What happens when the Sitecore license got expired? (In context of on-prem) Imagine my SC license got expired, what happens next? Will all my envs be unavailable or unusable? And is SC company able to postpone this (or vice-versa, block my envs just by pressing a button) remotely?
I had the same issue on a 10.2 site a while back: ERROR SXA: Could not find 'id' attribute for node <r uid=&quot;{777E267C-D996-4D12-BF7D-7A24477B3BB8}&quot; /> I used a script to detect all the pages that had this rendering uid: $defaultLayout = Get-LayoutDevice &quot;Default&quot; $useFinalLayout = $True $pages = Get...
Error - "SXA: Could not find 'id' attribute for node" I am seeing an error in my SC 10.2 (headless SXA) logs that I can't find any information about online. When a call is made to this path: /sitecore/api/layout/render/default?item=/some/page&amp;sc_apikey={MY_KEY}&amp;sc_site=MySite&amp;sc_lang=en&amp;tracking=true I...
Sitecore applies config in the order defined in layers.config. The default order is: sitecore (i.e. App_Config/Sitecore) modules (i.e. App_Config/Modules) custom (i.e. App_Config/Includes) environment (i.e. App_Config/Environment) Based on the comments above, it sounds like you have tried manipulating the naming of y...
Unable to patch DefaultExternalUserBuilder in Sitecore 10.1.2 Our team is using Sitecore 10.1.2 with local environment hosted on developer machines, and deployed environments with K8s and Docker with Coveo serving all of those environments. Only in our deployed environments we are using federated authentication with A...
you can use following code to get all the roles assigned to the item. item.Security.GetAccessRules()
How to get assigned role for an item in C# code? I assigned a role to a form. I need to get that extranet\Marketing from the form item. I tried to check the Security property and I was not able to get that. What is the right way to get the roles assigned to an item, in this case, a form?
This question stems out of a misunderstanding between what is displayed on the cache.aspx page and what is shown as running total in the logs. Here's what Sitecore had to say about it: Running total refers to the amount of cache sizes allocated for each cache so far. It is not the current size of the cache. It is more...
Why doesn't the cache.aspx total cache size line up with "running total" size in logs? When I check /sitecore/admin/cache.aspx I see a total cache size value of around 334000000 (334 MB). The size is consistent with what I see when doing a quick calculation of the current run size of all the entries. However, when I c...
If you are using Sitecore Managed Cloud, then there is a known issue with the missing Optimization strip. Provided that you have enabled xDB.Enabled, xDB.Tracking.Enabled and ContentTesting.Enabled settings, you can just package those missing content items from another Sitecore instance and install it. You can refer he...
Optimization Tab didn't appears on Experience Editor I'm experimenting with the issue where I have active all the content testing features, but on the Experience editor, I'm not seeing the optimization tab to control my tests This is how I'm seeing: And this is how I expected to see: Does anyone know where I should ...
The problem is you are using a Multilist with Search field, but supplying it with the source query used for a standard Multilist field. On the Multilist with Search field, you are writing a query against the index vs using Sitecore Query. Start with StartSearchLocation, in your case you would want something like StartS...
Sitecore Template Source Query issue So I have a multilist with search field that I ONLY want to add the items under my home folder per region. So I want my us site settings file to only pull in the US home items and then the CA Site settings to bring in CA only home items. Currently my query is returning all of the ...
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 specific item X and other users doesn't create items under that X item.
Delete permission for authors to delete items they have created themselves but no other items In Sitecore XM Cloud, is there any way we can set delete permission for authors to delete items they have created themselves but no other items. Preferably with no code customization. Thanks Shrutika
You can follow this structure that includes your Main Navigation and sub-navigations. You can start with this and modify it as per your needs. Main Navigation - Shop (Template Name: First Level Navigation, Fields: Title) - Mice (Template Name: Second Level Navigation, Fields: Title, Image, Link) ...
How to setup the data structure for top navigation For menu like this one: https://www.logitech.com/en-us labels at the top on hover, submenu opens submenu can include subcategories labels as well as some images or custom components each submenu may be different from others I use React/NextJS to implement UI of the...
The issue was due to us having unchecked &quot;Automatically expose System Environment Variables&quot;: We had done this previously due to adverse effects on next-auth-js. We were unable to override the PUBLIC_URL that it retrieved as it kept pulling the Vercel Domain and we rely on Cloudflare to proxy into Vercel wit...
Error: Editing data cache miss for key; Unable to get editing data for preview {"key":"<GUID>"} After upgrading from JSS 20 to JSS 21, we are unable to open pages in Experience Editor. Our rendering host is Vercel and there are several errors in the logs: Error 1: T', maxHeaderSize: undefined, insecureHTTPParser:...
On the file: sitecore\shell\Applications\Layouts\DeviceEditor\DeviceEditor.xml you have <Tab ID=&quot;ControlsTab&quot; Header=&quot;Controls&quot;> <div class=&quot;scStretch&quot;> <Scrollbox ID=&quot;Renderings&quot; Padding=&quot;0px&quot; /> <div class=&quot;optionButtons&quot;>...
Disabling 'Remove,' 'Move Up,' and 'Move Down' Buttons of a Specific Rendering in Presentation Details and Experience Editor Based on User Role How can we restrict the removal of a specific rendering from presentation details of any page item based on role? Everything else should function normally, such as editing the...
Broadly speaking, if you get this error, it's probably because there is a mismatch between your context item's path in the database vs. the context item's path stored in the index. A reindex should fix the issue, but chances are that there is a greater issue at play. This question and solution is similar to what was ex...
Can't browse for rendering datasource and NullReferenceException in Sitecore.XA.Foundation.LocalDatasources On my headless SXA 10.2 CM instance, I have a page in my tree (within a bucket) where if I try to browse for a rendering datasource, the popup does not appear, and an error appears in my logs. This happens for a...
The solution These are generated automatically when certain fields are saved on the site definition item (/sitecore/content/<tenant>/<site>/Settings/Site Grouping/<site_definition>). You can regenerate it by changing and saving (and then changing back/saving again) either of the below fields: Site name Start item For...
How do I regenerate the sitemap media item in a Headless SXA site without publishing? I have an XM Cloud site I'm building locally and the current sitemap XML in the Media Library (/sitecore/media library/Project/<project_name>/<project_name>/Sitemaps/<app_name>/sitemap) is empty. How do I regenerate it with the pages...
For language fallback you need to configure it for xmcloud instance and experience edge: https://doc.sitecore.com/xmc/en/developers/xm-cloud/enable-and-set-up-language-fallback.html https://doc.sitecore.com/xmc/en/developers/xm-cloud/enable-publishing-language-fallback.html You have not shared, if you have applied any ...
Sitecore XM Cloud Language Fallback Works in Experience Editor but Not in Headless Application I configured the Arabic language version at the site level and selected the English as the fallback language. Then, enabled the item language fallbackand language fallback. After that,created the data source for English on...
From what I know is that data cannot be shared between pages by default. You could however create a custom form processinig feature <processor type=&quot;YOURPROJECT.Feature.FormsProcessing.Pipelines.FormsPipeline.FormProcessorFieldValue, YOURPROJECT.Feature.FormsProcessing&quot; patch:after=&quot;processor[@type='Site...
Sitecore Form 9.2. submit data trasfer I have a Sitecore 9.2 form that is created with 2 Pages, The submit button on the first form redirects to the next page, I need to display some text information on the second form based on some processing results on submission. I know it should be a custom action, but where this ...
sc_link_info is not out of the box function. It's a custom extension for Scriban which can be found on github: https://gist.github.com/auzick/c2e127ed4c6aef0f019eedc0ab738d2b When you open page in Experience Editor, the else condition from 7th line of your code is not triggered, so the sc_link_info is not used. That's ...
Using sc_link_info on Scriban template throwing error I am new to Sitecore sxa, I have got SXA Scriban template being used in rendering variant. as /Component-x/default/Link and this Link has a field where following snippet is provided. {{ if ( o_pagemode.is_experience_editor_editing ) }} <div style=&quot;display:...
Can you please verify your custom claims: <IdentityResources> <SitecoreIdentityResource> <Name>sitecore.profile</Name> <UserClaims> <UserClaim1>name</UserClaim1> <UserClaim2>email</UserClaim2> <UserClaim3>role</UserClaim3> <UserClaim4>http://www.sitec...
Admin/Role is not mapped to Azure groups I followed the this link to enable Azure AD as identity provider for my local Sitecore 10.1.3 instance. I can login with one of the user with admin groups mapped, but Sitecore gave me the following message: it seems that the groups are not mapped to either admin or sitecore\au...
From the mentioned link, Can you please replace the piece of code with the followings and verify: var xdbCollectionCert = &quot;StoreName=My;StoreLocation=LocalMachine;FindType=FindByThumbprint;FindValue=15E6693B0AECB63DE57D991EC363CA462DC52432&quot;; var options = CertificateHttpClientHandlerModifierOptions.Parse(xd...
xconnect namespace error on CertificateWebRequestHandlerModifier Based on the information provided in the Sitecore documentation, https://doc.sitecore.com/xp/en/developers/103/sitecore-experience-platform/create,-retrieve,-and-search-contact-and-interaction-data.html I am encountering an error related to a missing usi...
Sometimes this issue comes because of firewall settings so if you check firewall settings then it should work. Alternatively, you can manually add host entries and remove CreateHostHeader from the below JSON. sitecore-XP0.json xconnect-xp0.json IdentityServer.json More detail you can find here https://sitecorecorner....
Sitecore 10.3 installation using Sitecore installation Assistant "unable to set lock on host file" While attempting to install a new Sitecore instance for version 10.3, I encountered the following error: Unable to get lock on file C:\WINDOWS\system32\drivers\etc\hosts after 10 attempt(s). I have explored several resou...
Type field in Sitecore is a reserved field. This is used for field name resolution as mentioned below, which is a text field that cant contain multiple values. https://doc.sitecore.com/xp/en/developers/90/platform-administration-and-architecture/using-solr-field-name-resolution.html Field type in Solr is resolved by ru...
Sitecore Multilist not indexed as multivalue I'm working on a Solr problem. We're in the process of upgrading a Sitecore 9.2 version instance up to a 10.3. It's a multi-tenant site in Sitecore. Hosting ~10 sites. All the sites share a solr index called sitecore_content_index. The index populates, and indexes. But when...
Creating a custom API will work for you. Where you can write this logic to create user into Sitecore database. Here is a code snippet that you can refer to. System.Web.Security.Membership.CreateUser(domain\user, &quot;password&quot;, &quot;some@example.com&quot;); For example System.Web.Security.Membership.CreateUser(...
Adding a CM User from External System to Sitecore I am using Sitecore 10.1, there is a business requirements to allow external system to add CM users to Sitecore so my question is: Is there an API that we can access to add the users in Sitecore?
I was not able to determine the root cause of the issue. The only way I was able to get this working was by upgrading to a newer version of Sitecore CLI (5.2.113). I spoke with Sitecore support and that was their recommended solution as well. Recommendation: update from Sitecore CLI version 4.x ASAP so that this does n...
Error connecting to ID host: An error occurred while sending the request I am getting an error when running dotnet sitecore login: PS C:\projects\MySite> dotnet sitecore login --cm &quot;https://cm.mysite.localhost&quot; --authority &quot;https://id.mysite.localhost&quot; --allow-write true -t Looking for package Site...
When a user registers, you can create a new custom field in user profile. Below are the steps: Select the Core database. Open the Template Manager and select the User item. You can find it in the following path: templates/System/Security/User. Edit the template, adding the fields you need. Sections can also be added. ...
Log out an user from all it's different sessions on different browsers We got a front-end website, where users can register and log in (and an extranet user is being created in Sitecore for that). We noticed, that on password change on one browser, the user stays logged in on all other browsers they were logged in. So...
Just use the constructore of ContactExecutionOptions which accepts ContactExpandOptions as a parameter like that: new ContactExecutionOptions(new ContactExpandOptions(new string [] { PersonalInformation.DefaultFacetKey));
How to transition from Obsolete ContactOptions to ExecutionOptions in xConnect xdbContext.GetAsync method I am in the process of creating a Contact in xConnect and encountering the following warning message. What are the modifications needed to convert code from utilizing the ContactExpansionOptions parameter to the ...
For both of your questions, the best way to create a zip and download it, if you have multiple items in different folders. Take this script as a reference. #Upload Data Folder for CSV Upload $dataFolder = [Sitecore.Configuration.Settings]::DataFolder $tempFolder = $dataFolder + &amp;quot;\temp\upload&amp;quot; $filePat...
Powershell script to download media library content to my machine I have Sitecore 8.2 where I got spe version 6.4 I have got a csv file, where sample of data i.e. one row looks as &quot;Item ID&quot;,&quot;Title&quot;,&quot;Created&quot;,&quot;Changed&quot;,&quot;Media-ID&quot;,&quot;Related Site&quot;,&quot;Search Ta...
function Convert-DateFormat { param( [string]$inputDateString ) $inputDate = [datetime]::ParseExact($inputDateString, &quot;yyyyMMddTHHmmssZ&quot;, $null) $outputDateString = $inputDate.ToString(&quot;yyyy-MM-ddTHH:mm:sszzz&quot;) return $outputDateString } You can use this method to conver...
Sitecore PowerShell script to convert Sitecore Date field data to other format I am having Sitecore's Date field data coming as 20230804T000000Z, I also have time coming as 11 am. The Date is coming from Sitecore date field, and time from Single-Line Text field as below. I need to combine these two and get the date a...
This conversion from Dollar('$') to ('#') is occuring from the below code snippet inside Sitecore.DevEx.Serialization.Client.dll, which converts all the invalid file characters to '#' symbol. I believe the changes were made to address and convert all the invalid characters to '#' using above code snippet. Inside versi...
Why did SCS change branch template $name item paths to start with "_" instead of "#"? I recently updated Sitecore CLI version 4.2.1 to 5.2.113. I ran dotnet sitecore ser validate --fix and I noticed many of these log entries: [/sitecore/templates/Branches/Project/ACME CO] INCORRECT FILE PATH: ~/Pages/General Content P...
After upgrading I ran into build issues because of this. After installing the necessary NuGet packages you're now missing because of the fact that they aren't dependencies anymore, you will get errors around having version numbers in your csproj files, so you will need to remove the version numbers. Then you'll need to...
Where have all my Nuget transitive dependencies gone? Problem Statement I'm upgrading a local environment from Sitecore 10.3 to 10.3.1. The platform is easy enough to upgrade using Docker with an update to my IMAGE TAG version: 10.3-ltsc2019 to 10.3.1-ltsc2019. Upgrading my Visual Studio solution should also be stra...
This issue was fixed by disabling the firewall. The firewall was blocking the access. It can be blocked either by the default system firewall or any specialised software like cisco secure client.
openid-configuration: DNS Fail We are using Sitecore 10.3. For the local setup we are using docker. The local setup works fine(cm, id and frontend site) except logging in to Sitecore using Sitecore CLI. It is failing with below error. Error connecting to https://id.abc.localhost/.well-known/openid-configuration: DNS F...
You can refer to following code snippet to check if the agent is running. DefaultJobStatus jobStatus = (DefaultJobStatus)JobManager.GetJob(&quot;{{agent_name}}&quot;)?.Status; if (jobStatus != null &amp;&amp; jobStatus.State != JobState.Running &amp;&amp; jobStatus.State != JobState.Queued) } You can replace the agen...
How programmatically check if custom agent is running? I have a custom agent that imports content from an external server. This process can take from 5 minutes to 2 hours. Agent can be started by scheduler or user. I want to prevent two same agents from running at the same time. Currently I have a flag in the DB that ...
No. Commas , and periods . are stripped from the values. You can take a look at Sitecore.StringUtil.ParseSizeString(string) for proof, I've not found this officially documented anywhere. Valid sizes examples: 12000 (bytes) 500KB (kilobytes) 25MB (megabytes) 2GB (gigabytes) If you want 1.6MB, you're going to have to g...
Are decimals supported when specifying cache size values? Are decimals not supported when configuring cache sizes? I recently noticed that setting a cache size to 1.6MB resulted in the cache size being set to 16MB: Patch Config Below is the patch config where I set the cache size to 1.6MB: showconfig.aspx Page cache...
Yep. DataSource=/Sitecore/Content/Home&amp;IncludeTemplatesForSelection=section,page Where section and page in this case, would be the templates you wanted to include. More information here: https://doc.sitecore.com/xp/en/developers/92/sitecore-experience-manager/controlling-the-list-of-items-in-a-selection-field.html
The Treelist's Sitecore query should show all items from a folder and restrict selection to a specific template Is there Sitecore datasource query for a Treelist to display all items from a specific folder, while limiting selection to only items of a particular template?
Can you check the modules section configured inside sitecore.json file is correct. It should contain the path of the module file where the configuration for items to be synced are defined. You can specify module file by path or use wild card to include all the file names ending with module.json. https://doc.sitecore.c...
Getting message for Sitecore CLI-5.2.113 - dotnet sitecore ser pull I am doing the Sitecore CLI setup on my local Sitecore site. I am executing the following command - dotnet sitecore ser pull but I am getting this below message instead of pulling Sitecore items as, PS C:\Work\Sitecore\Repos> dotnet sitecore ser pul...
This can happen if the blob of the media item (the actual media data) no longer exists in the configured blob storage provider - in your case Azure Blob storage. As a first step, check the credentials for the Azure Blob storage provider still work correctly as perhaps it is just a permission issue reading the blob. Som...
DefaultMediaItemTextExtractor: Cannot extract content from media item with id - Expected pdf format While reindexing my master / web indexes, the reindex failed and I saw these error messages in the logs: Sitecore.ContentSearch.ContentExtraction.Common.DefaultMediaItemTextExtractor Exception: System.IO.FileLoadExcept...
Based on the previous question, you are trying to redirect to 404 page inside the controller action. You can follow below steps to achieve the same. Step1: Create the custom class extending ActionResult as below. public class TransferResult : ActionResult { public string Url { get; set; } public TransferResult(...
Trouble getting GetPageItemProcessor implemented I asked a question &quot;how to trigger 404 in controller&quot;, my post was closed and pointed me to an early question which was considered answered. I followed that link and tried to implement PageItem404: GetPageItemProcessor as described in the answer, I got compile...
Yes. You can unzip the package. Inside that there will be package.zip. Unzip package.zip and inside that you will find installer folder, inside Installer folder open project file. This project file is an xml file where you can see all the sources of package. You can also see all the items in items folder. In this fold...
How to find out what is in a Sitecore Package without installing it Once I have created a package and downloaded it to my system from Sitecore, is there any way to know what the package contains, maybe just path of those items. I want to achieve this with out downloading the package into other environment.
This issue is because of mismatch of language codes. In solr document, both languages exist (like de-de and de-DE) but still there is no result when we use the filter &quot;de-de&quot;. We need to pass the language code like de-DE if we pass the language code like de-de the dictionary values will not be retrieved. This...
Not getting dictionary items/values for non en languages from web db We are using Sitecore Headless. We are not getting dictionary values for non en languages from web db which is used for preview site. We tried to get the dictionary values using Graph QL Query. We were able to get the values for en but we were not ab...