People who code: we want your input. Take the Survey

Questions tagged [sxa]

Anything related to the Sitecore Experience Accelerator (SXA)

Filter by
Sorted by
Tagged with
0
votes
1answer
68 views

SXA Variant Switcher

we have a requirement to allow end user to Switch between two view ( list view and grid view ) for a media library images , we setup the render variants for these views but my question is how to ...
2
votes
1answer
74 views

Cannot search sxatags to find related items - 'undefined field sxatags'

Sitecore 9.3 with SXA. I'm trying to utilise sxa tags from the inherited _Taggable template to programmatically find related items with similar tags to the context item. That SXA template is /sitecore/...
0
votes
0answers
106 views

Html.RenderFormScripts not loading scripts for sitecore CD when using with Rendering variants

In an sxa site, I have a custom sxa component with a placeholder item to load the form. In the page using this component, I have added a 'Sitecore form Wrapper'=>'Mvc Form' component using ...
0
votes
1answer
154 views

How to include all children of path on Unicorn serialization?

We've been working on refactoring a sitecore solution to bring it in line with helix principles. One of the main initial offenders was the placement of a lot of serialisation in the project folder. ...
0
votes
0answers
31 views

inserting tenant error sitecore 9.2 SXA 1.9

When I try inserting a tenant this error appears I tried reinstalling SXA but no difference happens CodeBeside class "Cognifide.PowerShell.SitecoreIntegrations.Applications.PowerShellRunner,...
2
votes
1answer
251 views

How do you count the number of children in a Scriban template?

Given a page or item, how do I count the number of children? {{ i_page.children }}
0
votes
0answers
42 views

Different Page size for Desktop and Mobile in SXA

I am using Search Results component for creating blog list using SXA. I want to load first 10 results in desktop/tablet and first 5 results in mobile device on page load. Also on click of load more, ...
1
vote
1answer
63 views

Run setting value of config file on ContentDelivery server only

We would like to run particular setting value on ContentDelivery or ContentManagement server only in Sitecore 9.1.1. Config file <configuration xmlns:patch="http://www.sitecore.net/xmlconfig/&...
0
votes
0answers
37 views

How to fetch getitem detail in Sitecron execute method

Would like to fetch item details through getitem() method in Sitecron job execute method. However, We are unable to fetch it. Sitecron job execute method: public void Execute(IJobExecutionContext ...
2
votes
1answer
185 views

How to get Media URL with custom width and media protection hash using Scriban

I need separate image fields for mobile and desktop and trying to render it using Scriban in picture tag as below. Current Scriban code: <picture> <source srcset="{{ i_item....
1
vote
2answers
78 views

Read site setting in rendering variant template

I want to read a site setting property (defined in Setting/Site grouping/'Sitename') in a SXA rendering variant template. Is this feasible in sitecore 9.2?
1
vote
1answer
67 views

I need to add SXA Page Content component to standard values of template

I created a custom template to use with the SXA Page Content component. On the standard values > presentation > details, I selected the Page Content control and I want to use a custom variant (...
1
vote
1answer
52 views

How do I resolve the objectToSwitchTo error in Sitecore 9.3 with SXA on the ContentDelivery server?

I'm currently experiencing an issue in SXA where the log reports an error and no search results are returned. 3764 08:00:38 WARN Results endpoint exception Exception: System.ArgumentNullException ...
0
votes
0answers
52 views

How to add multiple field in search result facet

I am using sxa search result component My Requirement is to sort the result by 2 field, one field check box named isimportant with high priority and second is updated date with low priority. I have ...
0
votes
1answer
37 views

SXA JSON Results don't read from custom index

I'm using Sitecore 9.1 and SXA 1.8, I've created custom index instead of "sitecore_sxa_web_index", the Search Results component fetch data from the custom index and works fine, but the JSON ...
1
vote
2answers
167 views

load css and js only for Experience Editor in SXA

I have some css and js file in Sitecore, that I want to be loaded only in Experience Editor mode. Any way of achieving this in SXA?
0
votes
1answer
297 views

ERROR An item with the same key has already been added

Working with sitecore 9.1.1 and SXA 1.8.1. The below error suddenly appeared on the CD URL. Server Error in '/' Application. An item with the same key has already been added. Below is the stack ...
3
votes
2answers
131 views

Sxa Tab is causing autoscrolling while redirecting to that page

I am using Sitecore 9.3 SXA, wherefrom main page on button click I am redirecting to the video page where we have SXA Tab component below the video. Upon redirecting, the page is getting scrolled to ...
1
vote
1answer
76 views

Enabling Caching.CacheKeyIndexingEnabled.ItemCache causes error message on save and publish

Upon saving the home item I see the following error: Could not find configuration node: databases/database[@id='staging'] There are no files on the system (config, yml) that contain "staging&...
0
votes
1answer
59 views

Insert two values in SXA custom search query token (ResolveSearchQueryTokensProcessor)

I am working with a custom SXA search query token. I want to Insert with two different values. foreach (var val in values) { args.Models.Insert(i, this.BuildModel(itemFieldName, val)); } args....
1
vote
1answer
33 views

Can we use SXA Search Functionality with JSS pages

With Sitecore 9.2 and JSS, can we use the SXA search functionality and configuration (scopes and boosting etc.) with JSS ? Has anyone done this or did you encounter any specific issues?
0
votes
0answers
19 views

We are working on Azure Search and we want to limit the search results to certain fields in Sitecore [duplicate]

We are working on Azure Search and we want to limit the search results to certain fields in Sitecore. I have created a patch file where we have mention the limit fields. But, still the search is ...
0
votes
1answer
100 views

How to get Variants field for Page Content

I'm extending the SXA Accordion component to add a header to the accordion. Ok, derive a template from Accordion template, add the Page Component to the presentation details for the standard values, ...
0
votes
1answer
55 views

How to write a for each inside template of a rendering variant

Inside a rendering variant I added a template. Inside that I want a for each loop. Can anyone please suggest if it's feasible. Sitecore 9.2
0
votes
0answers
28 views

Is it possible to display only a selected list of SxaTags in Sxa Filter Dropdown using SxaTags Facet without additional EnumList/computed fields?

Scenario: I have the Tags Folder under Data/Tags -> categorized to Authors, Categories, NewsTypes etc.. and have been using these ootb sxatags to tag various pages across a site for search pages , ...
0
votes
0answers
59 views

Sitecore 9.3 with sxa installation is displaying placeholder having empty data binding

My installation has Sitecore 9.3 with SXA. Master page on page have a placeholder and that placeholder is bind to view rendering. View rendering(*.cshtml) contains @Html.Raw with binding to an empty ...
0
votes
1answer
135 views

Sitemap in SXA JSS Site

We are using REACT App in the front end and using capabilities of Sitecore JSS(12.0) for headless view and SXA(1.9). I have configured settings to get sitemap settings (by inheriting sitemap template ...
-1
votes
1answer
109 views

Field rules in Search Scope is not working with tags field of my pages

I am using SXA Sitecore 9.3, my requirement is to get search result based on SXA tags on the pages, for which I have applied query and rule in search scope. But the tag result is not accurate, even ...
0
votes
1answer
76 views

SXA Boosting by multiple query

I'm using Sitecore 9.1 and SXA 1.8, I'm using SXA boosting rule of where the field contains Search Box query, this rule doesn't work when the Search Box query is multiple words that are not in order. ...
2
votes
2answers
139 views

Error in Add-SiteModule Script

I am trying to add a New Site Module to the Website, and it is working fine for the first time. But when I try to create a second Module and try to add it, it is giving me error. Please see below the ...
0
votes
0answers
280 views

404 error handle in Sitecore SXA

I am using Sitecore SXA and handling page not found through by default functionality in SXA by going on below path: /sitecore/content/{tenant name}/{sitename}/Settings > Error handling tab > and ...
0
votes
1answer
156 views

Sitecore OpenGraphs Meta Tags rendered in body

Sitecore OpenGraphs Meta Tags rendered in body in html, and I need to render these meta tags in "head", Note: Open Garaph rendering in Metadata partial design in head placeholder so is ...
0
votes
0answers
24 views

SXA Number Boosting rules

I'm using Sitecore 9.1 and SXA 1.8, I'm using SXA boosting rules for boosting results, but the field I'm using is not String type, it's Number type, so I used the Numbers operators instead of the ...
2
votes
0answers
22 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?
0
votes
2answers
139 views

Sitecore Form default CSS and JS not loading

I have a Sitecore Form that is working fine on one SXA site. However, if try to use the same form on another site then on the click of submit button, it's redirecting to the Formbuilder page. Also, I ...
2
votes
0answers
234 views

Sitecore SXA Preview Item error

I am using sitecore 9.3 with SXA and i faced an issue while trying to preview an item but i am not sure what can be the root cause of this it happens appears several times, any one has faced this ...
0
votes
2answers
62 views

Manage different css folder for one sxa site

I have a sxa site with two different type of pages. Both pages have different layouts. I want to have different css and js folder for each page. Any way of achieving this in sxa
0
votes
1answer
118 views

Boost search results by field value

I'm using Sitecore 9.1 and SXA 1.8, Is it possible to boost the search results by a specific field value? What I see in SXA boosting rules that you adjust boost by adding a value statically, I want ...
0
votes
0answers
138 views

How to build Sitecore SXA Scope Search query with comoperations

I have requirement to show the query results based on the logged-in user-profile details, I was able to pass the query token field value dynamical by following the code. How to write a SXA search ...
1
vote
1answer
67 views

How do I change http cache control options when a page contains personalized components?

I am using Sitecore 9.3, sxa. I want to change the Http Header cache-control to no-store when an page or item on that page has been personalized. How do I go about doing this? Any articles/blogs or ...
0
votes
1answer
60 views

SXA Extending Component Search URL

Working on Sitecore 9.3. What I'm trying to do is edit a base .js file, being component-search-url.js. Specifically, I want to update the setEndpoint function to always return the endpoint. Currently ...
0
votes
1answer
190 views

SXA Search is unable to return result with '/' and/or '&' in Facet value

I have a sxa search component with multiple facets. In one of the facets, there is an entry that has a filter value of "Corporate / M & A". It yield no result when I choose the facet ...
0
votes
1answer
94 views

Custom Bucketing structure is never being hit

I have created a new Rule action on which to create a bucketing structure which takes in a selected date field and build the structure off of that date field. However, this rule is never hit. I have ...
1
vote
0answers
60 views

Exact search in Azure search in Sitecore SXA

Using azure search in Sitecore SXA 1.7 and it is not fetching exact result likewise if we are using "Test data" in search box then it is showing result based which match "Test data ...
1
vote
0answers
89 views

How to hide rendering component in Experience Editor in Sitecore SXA?

I have a page with 3 datasource rendering. 1st datasource rendering has 3 number version, 2nd datasource rendering has 2 number version, 3rd datasource rendering has 1 number version I am hiding 3rd ...
0
votes
1answer
605 views

Null checks in Scriban

I want to check for null values in Scriban. {{ if (o_model.address.id) }} <div style="text-align: center;"><h5>Address {{ o_model.address.id}}</h5><br /></div> ...
0
votes
0answers
51 views

Can we create multiple ActionResults in Sitecore SXA custom controller rendering?

Per Sitecore SXA documentation, in SXA custom controller, we have to override the GetModel() method and we call repository to get the model. I would like to create multiple Action Results in Sitecore ...
1
vote
1answer
52 views

Making config settings configurable for user

I am using Sitecore 9.3, SXA. I want to make some of the current config settings configurable from within Sitecore. I have created a template with all of the fields (e.g. MediaResponse single text ...
1
vote
1answer
153 views

Clone SXA Carousel; Unable to change the Carousel Slide Item rendering variant

I'm working to create a clone of the Carousel Composite component. I've been able to update the Datasource and Rendering parameter templates for my use cases. However, I'm unable to change the ...
0
votes
0answers
7 views

Login with social media account [duplicate]

how can I allow users to login through their social media accounts ?!! as I am using sitecore 9.3.

1 2 3
4
5
22