Search Result Content Template
The Search Result Content Template is used to show the content for the search results page.
It can be used for a regular search, searching segments or searching apps and app instances.
Below is the tags available in this content template.
General Tags
| Tag | Description |
|---|---|
| {{ firstItemNumber }} | The offset number for the first result for the range of results. |
| {{ footer }} | The footer content for the search result page. |
| {{ header }} | The header content for the search result page. |
| {{ lastItemNumber }} | The offset number for the last result for the range of results. |
| {{ searchTerm }} | The term or terms that the results are for. |
| {{ totalItemCount }} | The total number of search results. |
Number of Results per Page Intervals
These tags provide links for the visitor to adjust the number of results to show per page.
| Tag | Description |
|---|---|
| {{ resultsPerPageIntervals }} |
Holds the array of intervals. Loop through the intervals with the following code: {% for interval in resultsPerPageIntervals %} |
| {{ interval.number }} | Holds the interval number. |
| {{ interval.url }} | Holds the URL for the interval number. |
Results List
These tags contain the information about the search results.
| Tag | Description |
|---|---|
| {{ results }} |
The array of search results. Loop through the results with the following code: {% for result in results %} |
| {{ result.app }} |
The name of the App that the search result is for. Example names are:
|
| {{ result.appData }} | An array of data unique to the App that the search result is for. |
| {{ result.appInstanceKey }} | Holds the App Instance Key for the individual search result. |
| {{ result.content }} | Holds the description content for the individual search result. |
| {{ result.displayUrl }} | Holds the version of the URL for the individual search result that is better for displaying. |
| {{ result.publishDate }} | The date that the individual search result was published or made active. |
| {{ result.title }} | The title text for the individual search result. |
| {{ result.url }} | The URL for the individual search result. |
Pagination Tags
These tags contain the information to show pagination if there are more results than are set to show on the page.
| Tag | Description |
|---|---|
| {{ current }} | Holds the page number of the pagination page currently being viewed. |
| {{ currentItemCount }} | Holds the number of items on the current page. |
| {{ first }} | Holds the first page number. |
| {{ firstPageInRange }} | Holds the number of the first page in the range returned by the scrolling style. |
| {{ firstUrl }} | Holds the URL of the first page number. |
| {{ itemCountPerPage }} | Holds the number of items available to each page. |
| {{ last }} | Holds the last page number. |
| {{ lastPageInRange }} | Holds the number of last page in the range returned by the scrolling style. |
| {{ lastUrl }} | Holds the URL of the last page. |
| {{ next }} | Holds the number of the of the next page in the range. |
| {{ nextUrl }} | Holds the URL of the of the next page in the range. |
| {{ pageCount }} | Holds the total number of pages. |
| {{ pagesInRange }} | Holds the list of pages for the current range based on the pagination scrolling style. |
| {{ previous }} | Holds the number of the of the previous page in the range. |
| {{ previousUrl }} | Holds the URL of the of the previous page in the range. |
Search Form Tag
This tags contains the information necessary to build the search form.
| Tag | Description |
|---|---|
| {{ form.content }} | Holds the rendered content from the search form. |
Search Segment Tags
These tags contain information about the search segments that the search results were limited to if searching by segments.
| Tag | Description |
|---|---|
| {{ segmentCount }} | Holds the number of Search Segments that were specified in the URL for the search results. |
| {{ segmentFormTags }} | Holds the hidden form field for each Search Segment. |
| {{ segments }} | Holds an array of Search Segment keys that were specified in the URL for the search results. |
App and App Instance Tags
These tags contain information about the app or app instance that the search results were limited to if searching apps and app instances.
| Tag | Description |
|---|---|
| {{ appCount }} | Holds the number of Apps that were specified in the URL for the search results. |
| {{ appFormTags }} | Holds the hidden form field for each App. |
| {{ appInstanceKeyCount }} | Holds the number of App Instances that were specified in the URL for the search results. |
| {{ appInstanceKeyTags }} | Holds the hidden form field for each App Instance. |
| {{ appInstanceKeys }} | Holds an array of App Instance keys that were specified in the URL for the search results. |
| {{ apps }} | Holds an array of App keys that were specified in the URL for the search results. |