Questions tagged [sxa]
Anything related to the Sitecore Experience Accelerator (SXA)
1,261
questions
1
vote
0
answers
47
views
How to hide toggle filter based on search result item in SXA
I have created a search page using all SXA search components. How to hide toggle filter based on search result item in SXA. I want to show toggle filters only for some specific results, not for all ...
0
votes
0
answers
36
views
Access SXA dictionary values in view through Glass Mapper [duplicate]
I am trying to access SXA dictionary values in the .cshtml file through Glass Mapper.
Is it possible to do so?
0
votes
0
answers
95
views
Add a message in experience editor if datasource is not selected for a component in toolbox SXA
I need to add a message stating "Select the data source" in Experience Editor programmatically for Content Authors when the data source is null or the model is empty. I'm using the SXA ...
0
votes
0
answers
241
views
Object reference not set to an instance of an object - Speak Layout
I recently made some changes inside the bin file, basically I needed to manually upload some dll files. Well, this made my environment get this error that I will show you. I also had to change the web....
0
votes
2
answers
370
views
When i publish the item I do not see changes (missing component on certain language)?
I am having this weird bug where I published my changes but I do not see those changes for that specific item on the site, and I also have this weird issue that in certain languages (in this example ...
0
votes
1
answer
129
views
Experience Profile 403 error
The Experience Profile shows the correct data with no console errors when I logged into Sitecore for the first time but refreshing the page gives the error An error has occurred.
The only way to see ...
0
votes
1
answer
29
views
Clear extra Sitecore SXA html tags from the site pages
I have SXA site pages and I need to clear the extra Sitecore html tags (script,link).
After div tag
Specification:
Sitecore SXA 10.2
Can anyone provide any help ?
1
vote
2
answers
435
views
Could not find configuration node: databases/database[@id='test']
When I try to make a package from package designer, I am getting this error Could not find configuration node: databases/database[@id='test'].
I may know why this happens, and the reason for that is ...
1
vote
3
answers
154
views
How to deploy the site modules from one environment to another?
I recently asked the question about the deployment of certain items from one environment to another. But the question I have now is how to deploy the site modules? I want to choose the path of making ...
2
votes
1
answer
295
views
How to set CMS field value for Robots.txt
Using Sitecore 10.1 with Commerce 10.1
There is a field Robots Content in this item - /sitecore/content/Tenant/MySite/Settings.
This is a container setup and creating a file is not an option.
When a ...
0
votes
0
answers
48
views
Add associated content not showing after adding new component on the page
I have a bug in Sitecore 9.3 SXA, where after I added the new component page, the associated content will not show for me or the content editors to add the datasource. I have to manually do that after ...
2
votes
1
answer
110
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 ...
0
votes
0
answers
56
views
Read SXA Search Scope in Code
everyone ,
I've to read the SXA search scope in my code. I am using the search result component on my page and added some custom filters in the search scope. So I need the applied search filter on my ...
0
votes
0
answers
58
views
How to bind a modal to CTA Link of data source item in Sitecore SXA
The client does not want to create and assign 20 modals on presentation details for different data source items on the listing page. How we can bind one modal to the data source location so that it ...
0
votes
3
answers
90
views
$name is getting indexed
We are on Sitecore 10.1 and Solr 8.4. We are using Filter (Checklist) component and found out $name is showing on the page.
Upon checking the Solr, the $name is getting indexed as well.
This is the ...
0
votes
2
answers
383
views
Context is null in GlassMapperConfigurator
I'm trying to access Sitecore 10.2 model fields using Glass.Mapper.Sc.92 version 5.8, and registered all Glass.Mapper services in GlassMapperConfigurator class. However facing the "Context is ...
2
votes
1
answer
184
views
How to increment value and use it in sc_placeholder
Is it possible in Scriban to use the value from the variable, and then increment it and then use that value inside the sc_placeholder
If it is not possible using the basic default Scriban, maybe ...
3
votes
4
answers
457
views
Remove Breadcrumb last node link
We are using the Sitecore SXA Breadcrumb component. It is showing perfectly fine on the page, however the last node (current page) is showing as a link. We don't want to show the last node as link.
...
6
votes
1
answer
149
views
Sitecore item data fetch on the basis of language if wrong language append goes to 404 page
I am getting stuck with an issue, I have a Multilanguage site that is based on SXA. Rather than going to change via language drop-down, I am going to change language via URL.
Please see the steps ...
0
votes
1
answer
265
views
Need sample Sitecore PowerShell script to add components to any SXA page dynamically
We are looking for a Sitecore PowerShell script using which we can assemble/add components directly to an SXA page. I am able to add an SXA page, then add a Container component (under the page ...
2
votes
1
answer
267
views
Breadcrumb link customize
We are using Sitecore SXA and adding breadcrumb component from the toolbox.
It is working fine , however, we need to remove Home link from the breadcrumb:
For example :
Home > Test > Test Data
...
0
votes
0
answers
24
views
How to check the length of selected items in for loop using Scriban? [duplicate]
Is there a way to check how many items are selected from Treelist using Scriban? What I want to do is that if there is only one item selected then display something, if there is more than two then ...
0
votes
2
answers
176
views
Is custom view rendering possible in Sitecore SXA?
I have tried clone rendering of inbuilt promo component in Sitcore SXA ,that is a controller rendering.
Is it possible to create a custom view rendering? If yes, then how to access the SXA model ...
0
votes
2
answers
925
views
Scriban Rendering Parameters - how to get the value from Droplist?
I am trying to get the value from the Rendering Parameters in Scriban in order to render some new logic. Basically, I want to allow the content editors to choose what colour of the button they will ...
0
votes
1
answer
181
views
Sort order in template
How can we implement sort order functionality in template in Sitecore SXA?
For example :
We have three item in Sitecore Content editor :
**Name** **Sort Order**
Test 1 1
Test 2 2
...
0
votes
1
answer
94
views
Unable to make Visual studio model fields editable in experience editor for Sitecore SXA
I'm using a custom Sitecore SXA controller rendering for the first time with Visual Studio and I want to make the model fields in the .cshtml view file editable in Sitecore Experience editor. Is there ...
1
vote
2
answers
458
views
How can I display the MP4 General Link Field?
I want to display the MP4 video inside the file and I was trying to do it, but I get the issues when I try to display the field inside the component.
Here is the template:
So is it possible to get ...
1
vote
2
answers
129
views
How to choose image/video from treelist in SXA?
Is there a way to make a datasource template that will have a treelist where you can choose the image or video (it can be two seperate treelists) and the display those images or videos in the code (....
0
votes
1
answer
254
views
How to form a Page URL of wildcard item in scriban
I have created a variant to list down data source items using result variant selector and all these data items will need to point to wildcard content item .How to form URL of wildcard item in Scriban?
2
votes
1
answer
196
views
How to create an anchor tag of General Link field
We are getting results through Content Search API and getting the General Link field value into it. We would like to add an anchor link based on a general link field value. Do we have the default ...
1
vote
2
answers
41
views
How to fix weird bug with <option> tag in Experience Editor?
Does anyone get this weird issue when you are using <select> input tag, and inside the selec tag the the <option> tag. Everything works perfectly fine in Preview Mode but inside the ...
0
votes
2
answers
128
views
Sxa custom search token query Wrong date format
I have added a new sxa token processor to filter the passed date events,
This is my Code
protected virtual SearchStringModel BuildModel(string fieldName)
{
Log.Info($"SXA_Token ...
1
vote
1
answer
123
views
How to add dynamic placeholder to a SXA Rendering Variant?
Is there any way for me to add placeholders programatically inside the SXA rendering variant. I have tried using the * at the end of the name of placeholders but I keep getting some weird errors and ...
0
votes
2
answers
113
views
SXA seach Scope is not returning result in Search result component
I just added conditions in the search scope.
I could see the result in the backend, but the same is not returning the search result component.
If I remove the date condition, it is returning the ...
2
votes
1
answer
454
views
How to get the value from rendering parameters from VariantListsRenderingModel?
How to get the value from this type of model in the code. I have a simple carousel and I can get values easily from fields now I just want to get the Rendering Parameters for this specific rendering. ...
0
votes
2
answers
133
views
How to display English (region) language code on some of the pages?
How to get the English (region) - English (region) language code from Sitecore? I want to display the language code (EN for example) on some of the pages inside the <div> tag for example
<...
0
votes
1
answer
140
views
How do you create a dynamic copyright year in the footer using SXA?
I'm looking to build a new site and want to make the copyright something Content Editors do not have to worry about.
Is there a way in SXA to automate the year?
0
votes
2
answers
247
views
Sitecore SXA Multi Language Canonical Best Practice
I'm working on Canonical implementation on SXA, Sitecore 10.2. Self referencing canonical is working fine, So I have a doubt on Multi language Canonical url. I have a page like this one www.myhome.com/...
2
votes
3
answers
426
views
SXA Search Result Sort Order
Is there any way to do the sorting by Sitecore content tree order? I am working on Sitecore SXA components to build the page. I am using search scope for list down the result. I have created the new ...
0
votes
0
answers
48
views
How to have shared layout for specific page?
I am trying to achieve the shared layout for all the languages of the item. Basically, I have a project where a multiple pages are already made, and for 8 languages. Now I need to change every page (...
4
votes
1
answer
84
views
Is it possible to show shared site rendering variant at the top of variant drop down?
Is it possible to show shared site rendering variant at the top of variant drop down?
Currently, We have rendering variant in shared site and actual site and it is showing actual site rendering ...
1
vote
1
answer
171
views
What is the best possible way to change Bootstrap version in SXA?
Is there any easy way or what is a good way to change the Bootstrap version in SXA. I have used the 4.6.1 for my frontend design, but I know SXA uses the 4.3.1 version. The way I did it is that I made ...
0
votes
2
answers
74
views
Can we arrange the order in variant dropdown? [duplicate]
Is it possible to arrange the order or select any rendering variant at the top by default in variant dropdown option in Sitecore SXA?
This is variant dropdown values and we would like to show any ...
0
votes
1
answer
93
views
How to add controller rendering in placeholder in Sitecore SXA?
Is there any way to add the custom controller rendering in a placeholder in SXA?
Whenever I add the controller rendering inside the placeholder I keep getting errors for example Object not set to ...
0
votes
2
answers
241
views
How to create and edit header layout partial design?
When I create the partial design for example footer or header how to get the "rendering layout file"? Is it automatically created and I just edit it and if it is not, how can I create one?
...
1
vote
1
answer
97
views
Is there any way to edit partial design using Scriban?
Is it possible to style the partial design using the scriban template. For example, I just made the new header partial design for my new site, and I am now clueless on how to style it. I have been ...
0
votes
2
answers
359
views
Using Sitecore link Manager in scriban script
I have a general link that is linking to an item in Sitecore.
Path to linked item --> /sitecore/content/home/pageItemWithLayout
I am using the below scriban script below to render the item link.
&...
1
vote
2
answers
487
views
How to use orderby in Scriban template?
I have to list my upcoming events on the web page. I have created the data source item for holding all the events and each event has event date. I'm using Scriban to display all the events. My ...
0
votes
1
answer
58
views
What this code means when I duplicate a rendering
Can someone please explain me on some example, what these lines of code means. I duplicated the rendering and now I see this code, and I am so confused by it.
What is the meaning of Html.Sxa()....
1
vote
1
answer
192
views
Clearing Sitecore cache on publish for specific items
I want to clear custom cache when items at specific path are published. Here is what I tried so far.
Solution 1:
I created a custom event handler for publish:itemProcessed and publish:itemProcessed:...