Tuesday, 12 September 2017

Sitecore SXA Solr Search not working issue - RESOLUTION

In my previous post I discussed about Sitecore SXA search components and used Lucene as my search provider.
But, when I tried to run the SXA search with the Solr I couldn’t get it to work.
My instance running SXA was not showing any results on this URL:
I had to reach out to my “Crawling.log.” file to see what was really happening when Sitecore is trying to index the SXA content.
In the crawling log, I noticed repetition of errors related to the computed SXAContent field.
Exact error:

Wednesday, 6 September 2017

Sitecore SXA search components

After discussing about various Sitecore SXA capabilities before, today I am writing something about the search components which comes as part of SXA base installation. (version 1.3)

Search comes with many out of the box components which can talk to each other:

I will show you how to use some of the above to create search for our site.
 Below are the steps which enable search with a simple text box and search button:

Friday, 1 September 2017

Design Sitecore SXA components using Variant Template

In my previous blog post we talked about Sitecore SXA Rendering Variants and added variant fields to the variant definition.
The above variant did give us an option to include multiple fields but there can be a case where we have to extend the component by changing the HTML as well.
Below are the steps which will enable us to add a custom HTML to any Sitecore SXA component: (Continuing with the page list example from last blog post)

  • If we add a new Field Variant for our image, we get the below HTML:

But many a times the “Agency” (Front end devs) want the image to be lazy loaded and follow a set HTML pattern.