Questions tagged [components]
A Sitecore component is a single piece of data sourced content that can be added to a Sitecore page. The tag can be used for all questions around this topic.
41 questions
2
votes
0
answers
120
views
Error Boundary not working in Sitecore JSS with Next.js Project
I am using Sitecore 10.3.1 with JSS-Next.js app version 21.5.3 and Node version 21.7.3.
My requirement is to handle client and server errors at the component level. I am currently using the "?&...
1
vote
2
answers
227
views
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 ...
0
votes
2
answers
74
views
Load value dynamically in edit component properties window
I have a checkbox field(includelevel2) and I need to load the value dynamically in a droptree field(parent folder) based on the checkbox event. Is it possible to achieve because both the fields are ...
3
votes
1
answer
117
views
Is there any way I can order Rendering tabs?
Is there any way I can order Rendering tabs to appear when adding a new component to the page? I tried this from available rendering but it didn't work out
4
votes
1
answer
890
views
SSR Component Level Data fetching in JSS?
In a Headless Sitecore site I'm doing the front-end on, I'm trying to implement search. It's a JSS/Next.js based front end on top of the Sitecore back end. We've got:
JSS 20, Next 12.2, Sitecore 10....
0
votes
1
answer
108
views
Rich text is not showing in SXA toolbox
We have an issue in rich text component in Sitecore SXA, it is not showing in the SXA toolbox.
I have checked under Presentation > Available rendering > Page Content it is showing under ...
0
votes
0
answers
334
views
SXA Mega Menu with Navigation Component
Has anyone created a mega menu using the SXA Navigation component? Something similar to Home Depot and many others. The functionality includes a top level that can be clicked, but also on hover shows ...
2
votes
1
answer
284
views
Creative exchange object null reference error
We have upgraded to Sitecore 10.1 from Sitecore 8.2. The Creative Exchange feature is giving object null reference error in web database when creating a new site using powershell script.
How to ...
2
votes
1
answer
213
views
Components not visible after upgrade to Sitecore 10.1
I have upgraded from Sitecore 8.2 to Sitecore 10.1.
The layouts are rendered fine but none of the components are rendering. Seems like the placeholders are not working.
Some of the components are ...
2
votes
1
answer
318
views
Is it possible to pass an array data type to a react component with JSS Sitecore?
I am wanting to pass an array of string's into a react component with JSS Sitecore. At the moment, I am having to use CommonFieldTypes.SingleLineText in the sitecore component definition and splitting ...
1
vote
1
answer
38
views
Can we bind image component source through programming?
We would like to bind image component src thorough programming and would like to get Hash value as well.
Need this output :
<img src="/-/XXXXXX?h=192&w=192&hash=...
1
vote
0
answers
208
views
Component with workflow loads only once
In our project we have a home page and test home page. Both the pages have a component with two different data sources (based on same template- but content differs). Now the problem is when we make ...
3
votes
1
answer
270
views
Unit testing a Sitecore component controller throws exception in mocked service
I'm using xUnit, NSubstitute, FluentAssertions and Sitecore FakeDb. Here is the controller that needs a test,
public class TransactionsController : Controller
{
private readonly ...
1
vote
2
answers
742
views
Sitecore container with variants to change background color
I want to build a component in Sitecore that I can drag other components into when using Experience Accelerator, just like the out of the box container component. I'd also like to add variants on ...
0
votes
1
answer
233
views
How link is created in CTA link in Sitecore sxa? [closed]
We would like to understand how Sitecore SXA create a link for CTA link component ?
We use CTA link in Sitecore and add link through Internal Link and provide Query string value here. When we check ...
1
vote
2
answers
226
views
How do I render a Google static map with rendering variants?
I'm looking to generate something like the following using Google Static Maps. How would I go about setting this up with rendering variants?
0
votes
1
answer
284
views
Sitecore not obtaining an item's fields
My sitecore Article Component is not picking up my authors details.
I have an Article component that has the path to my article html page, /Views/Basic Components/Article.cshtml.
In my author page ...
0
votes
1
answer
302
views
How do you create a promo with title, text, buttons, and image?
I received a requirement to show title, text, 1-3 buttons, and an image.
What is a possible way to produce something like the following?
0
votes
4
answers
1k
views
How you render Page List data with multiple rendering variants?
I have a Query which returns a list of all "blog posts" sorted by date. I have a "Page List" variant-definition to display each blog post in the list, but how do I make the first ...
2
votes
1
answer
77
views
Tag Cloud Component doesn't support multilingual tags
I am using Sitecore 9.3 and working on scaled environment. First I have created tags with two versions English and Spanish for every tag like below "Sketch Tag"
I needed to tag content Page ...
0
votes
1
answer
371
views
Add here buttons in Experience Editor don't match placeholder
I'm having some oddball things happening with my Sitecore environment's experience editor. We have a pretty basic layout - one single placeholder named 'content', where we can add multiple components/...
0
votes
1
answer
105
views
Multisite solution restrict access to component
Our client has a multiwebsites solution and I have to restrict a component to be accessible only into one of the websites. Is there something built into Sitecore, or should I do it programmatically?
...
3
votes
1
answer
1k
views
Getting the datasource of all components inside the page using SPE
I'm creating a script that would list down all the components in the a particular page then displays the
RenderingItemName, RenderingItemID, RenderingItemPath, RenderingDatasource, etc.,
I found the ...
0
votes
1
answer
39
views
Select Template before create Promo
I have multiple promo template in template folder, may i know how to allow user to select a promo template before they create a promo in Experience editor?
This is my Promo Template.
But in ...
2
votes
0
answers
23
views
Hide component through personalization in Experience editor through programming? [duplicate]
I would like to hide SXA component through personalization rule through programming. Is there any way to hide component through programming?
4
votes
0
answers
3k
views
SXA Video, Youtube doesn't show thumbnail on mobile?
I am using a Video component and I've created a couple examples, 1 video uses a YouTube source, the other uses a video in the media library. On mobile devices, the Youtube video doesn't show the ...
3
votes
0
answers
42
views
How can a previously removed component be fully restored from standard values?
When a component coming from a template has been removed from a page item, it can be restored by resetting layouts from standard values. However, if changes are made to the component at the template ...
2
votes
0
answers
51
views
Why are page components getting bumped to bottom of components list after template is deployed?
After a particular template is deployed during a release, page level components are getting bumped to the bottom of the components list on page final layout. We've pulled that template from getting ...
2
votes
1
answer
430
views
Why and how to use Url Rendering in Sitecore
I am new to Sitecore. Can any one please tell me why and how to use URL Rendering in Sitecore?
4
votes
2
answers
547
views
Rendering always shows children of current page as datasource
Sitecore 9.2 (no SXA)
The code below is the Sitecore.Pipelines.GetRenderingDatasource.GetDatasourceLocation pipeline. The issue I am having is that if I set the datasource field, in the rendering. It ...
0
votes
0
answers
249
views
Adding <button> tag in Rendering Variants tag list
I want to add <button> tag in Rendering Variants tag list so that my link renders as <button> and NOT as <a href>
When I manually add the button tag in the enum list path (which I ...
4
votes
2
answers
2k
views
How can I edit rendering parameters programatically?
I have a rendering that is used on pages all over my site, and I had to add a new field to the Rendering Parameters it uses. I now need to update this field on a huge number of renderings, but only on ...
1
vote
1
answer
734
views
Reload particular Rendering/Component on button click
I am working on Sitecore 9 update 2.
I have two renderings, Rendering-A, and Rendering-B in Component-A and Component-B. In Component-A, I am displaying the most popular Articles using Rendering-A and ...
2
votes
1
answer
1k
views
Unable to add or move components in Experience Editor
After an upgrade from 7.2 to 9.0.2, we are facing a weird issue in Experience Editor with few of our components.
On few of the pages we are unable to add/move/delete components using experience ...
0
votes
0
answers
260
views
Calling component from another component via anchor link
I have a modal component which is basically a popup with some content in it. I have to ask if it is possible to link that component from another component.
For example I have anchor link in another ...
0
votes
1
answer
209
views
Insert taglist Component inside search result rendering variant
Can taglist component be used inside search result rendering variant?
I tried to use it with in search result rendering and it is just keep spinning and not showing any results. In the console, I am ...
1
vote
1
answer
98
views
Are individual yml files needed for each component param option?
As an example, I'll use a generic content Block component. This component, among other params, would have a columnSpan param. As far as I can tell, the only way to predefine options for that param is ...
0
votes
1
answer
82
views
Missing Files When Duplicating Rendering
I'm able to create modules and duplicate renderings without any problems when on my local Sitecore 9.1 / SXA 1.8 build, but whenever I am facing issues when trying to do the same process when using ...
4
votes
1
answer
2k
views
How to extend SXA components scripts?
I need to overwrite/extend the component JavaScript (e.g.: script for the Carousel which is located here /sitecore/media library/Base Themes/Components Theme/Scripts/component-carousel) files to add ...
0
votes
2
answers
2k
views
Experience editor, error when adding new component 'Could not find the rendering in the HTML loaded from server'
In Experience editor, the following error appears in the F12 Console when adding a new component with any rendering: 'Could not find the rendering in the HTML loaded from server'. I am logged in as ...
2
votes
2
answers
1k
views
Content/Component Sharing across multiple Sitecore Instances
We have a number of different sites (probably in 100+) and we have requirement of sharing content along with meta items across different Sitecore instances. We need this sharing feature as there is a ...