New answers tagged

0

By default SXA comes with a computed field sxacontent which is aggregating all texts from all fields of an item and uses the implementation in Sitecore.XA.Foundation.Search.ComputedFields.AggregatedContent. It is configured in \App_Config\Include\z.Foundation.Overrides\Sitecore.XA.Foundation.Search.Solr.config. Thanks to this there is no need to configure ...


0

You need to check this part of the documentation: https://doc.sitecore.net/sitecore_experience_accelerator/setting_up_and_configuring/configuring/extend_search#_Extend_search_to_3 This explains how to use a link type field in the facets. Add a computed field and use that fieldname in the facet: Add the following definition to your search configuration file: ...


0

You do need to have a search results component on the page where the filters are set. A search box component has a search page property - this component can be on another page (or your header to have it everywhere) and "redirect" to a search page. In case of a filter this doesn't make that much sense as they react on the search results. So those ...


0

Make sure you haven't made any change to the index configs, mostly to the include/exclude sections. Also check if you updated the IndexAllFields setting. If nothing got changed from the search configs: Rebuild your indexes. Make sure the indexes defined in the sitegrouping for the site are healthy. This might happen when Sitecore is trying to create the ...


1

Instead of Droplist, you can take Droplink because Droplist holds item name but Droplink holds the ID of that item, later on from that id you can get Item and access its field. LookupField address= (LookupField)mainPage.Fields["Address"]; Item addressItem = address.TargetItem; string displayName = addressItem.Fields["DisplayName"].Value; ...


-1

As per your logs - ERROR Could not update device detection database, it seems like a device detection issue, and Sitecore provided a patch for version 9.0.1, you can try to install that patch and try - https://kb.sitecore.net/articles/828414


0

The GetModel() method is a virtual method of SXA AbstractRepository. Most of SXA repositories inherits from it, that is why we are overriding that method in a lot of places (as you probably noticed). What you need to do is to implement that method (as it comes from your interface) rather than override. The same with FillBaseProperties() method. That is a ...


1

If I understand correctly you would like to change the text displayed in the breadcrumbs based on information from the querystring. The breadcrumb component uses variants, so you can use variants to display what you want. In your case you might want to create a new one (or update the default breadcrumb variant). As you will see in the default variant, SXA ...


2

Yes, you can, just create an Overlay page with your Login component inside. Then add a Link component and point it to your overlay page, don't forget to add the class "Links Shown in Overlay" to your Link component. Hope it helps.


0

I understood after analyzing the solr log and search over web that the boosting works case insensitively if the returnType is textCollection instead of string collection. The 'Services' field is a Tag Treelist and hence updating the return type for the same as textCollection in the config file fixed the issue.


2

The above solution from Tabbuu is not supported by safari, using code from here https://stackoverflow.com/questions/45098593/mobile-safari-scrollintoview-doesnt-work I was able to update it to be supported by safari as follows: const element = document.getElementsByClassName('dummy-focus')[0]; let scrollTop = window.pageYOffset || element.scrollTop const ...


0

So in the end I came up with a hack that satisfies both the content authors need for being able to select data-sources for renderings on a page, and have SXA add in the more static renderings like headers, footers etc. I started by creating a Branch Template based on the Page Template I wanted to use. I then created an item based off of the page template ...


0

Step 1: include the needed base template To include items created using a custom template into search results, you have to inherit the _Searchable base template (/sitecore/Templates/Foundation/Experience Accelerator/Search/Computed Fields/_Searchable). Step 2: your data is not in the "site" As your data is not an actual page in the site, that might ...


0

Yes, you need to create SXA indexes in Solr. Here is explanation how to do this copied from SXA 1.7 installation guide ( https://sitecoredev.azureedge.net/~/media/C9C535C21F8A4455BCF1F7F6C7AB1D1D.ashx?date=20180906T111805 ): Each index should have its own core, therefore for each custom index you wish to create for SXA, you must create a core. To create your ...


0

With SXA jQuery is already part of the core theme. Its included in the /sitecore/media library/Base Themes/XA API base theme. You are most likely not using the XA framework to inject dependencies in your custom JavaScript files. You need to make sure that you follow the SXA pattern for creating JS scripts like this: XA.component.myComponent= (function ($) { ...


1

This turned out to be a field name collision when the clone script was updating ID based links in the cloned site - it looks in all fields on all items, when it finds an ID it checks the path and updates the ID to the equivalent item in the site just cloned. The scriban template in Sitecore uses a field name of 'Template' to store the scriban data. During ...


1

Take a look at the answer here to get started: https://sitecore.stackexchange.com/a/11937/237 It's not possible ootb, and the easiest way to achieve this is creating a computed field in the index which will take the date fields value and transform it into a range text. Store this inside of the index as string and use it in the facet (as string, not as date). ...


Top 50 recent answers are included