Searching within CMS PagesEdit on GitHub
For the CMS pages in search results feature, the following details are provided:
- sorting options
- the number of results
Sorting by Relevance and Name
For the convenience of shop visitors, they can easily change the way the search results of the CMS pages list will be displayed. For this, simply use sorting options on the website:
- Sort by relevance: Search results that are most likely relevant to what you are looking for will be displayed at the top of the page.
- Sort by name ascending: The pages in search results will be arranged in the order from the shortest name in the title to the longest one.
- Sort by name descending: The pages in search results will be arranged in the reversed order: from the longest title name to the shortest one.
After the sorting has been applied, the page will be reloaded and the search results will be listed in the corresponding order.
Therefore, sorting options by a name and relevance available on the search results page will help shop visitors to find what they are looking for much quicker and easier, especially if there are a lot of pages on the store website.
Number of CMS Pages on a Search Results Page
The number of pages applicable to search results is wrapped into brackets next to the Pages or Products tab. This means that when the Products tab is active - the number is shown for the Pages tab and vice versa. However, if there are no results for CMS pages, neither tab, no counter will be displayed.
It is possible to specify how many CMS pages will be returned to the page. For now, there are three values:
- 12 - defines the minimum value set by default
- 36 - defines the maximum number of pages that can be displayed on the search results page.
Thus, if you need to load more results, select the respective number from the drop-down.
When there is no space on the page enough to show all the search results at a time, the list of found pages is split into several pages. With the pagination component, you can easily navigate between pages by clicking Next or Previous or selecting the particular page number.
Pagination allows controlling the number of pages rendered on the search result page and to structure the content to their preferences.
For submitting the form