I am adding Search Results with Load More renderings. I need to display a number of items loaded with the total number of items returned from search API.

  • Is there a way to get this info in SXA?

I am using SXA 1.7

1 Answer 1


To display a total number of results use Results Count rendering:

enter image description here

To show a number of items loaded by hitting Load More button you would need to add some custom logic (modify Results Count rendering or create a new one). Each time when you hit the button and the results are loaded the following event is triggered. Here is how you could attach for this event:

XA.component.search.vent.on("results-loaded", function (results) {
    //you custom logic here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.