DwSearchResultPages
Version: - integerSummary
Returns the total number of pages with search results.
Settings
The value is generated automatically and is based on the number of search results per page defined in thePaging section for the paragraph module.
(Page > Paragraph > Module tab > Paging panel)
Examples
Outputting the template tag
@GetInteger("DwSearchResultPages")
Check if tag has a value
@if(!int.IsNullOrWhiteSpace(GetInteger("DwSearchResultPages"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
int storedTag = GetInteger("DwSearchResultPages");
}
Outputting the template tag
<!--@DwSearchResultPages-->
Check if integer has a value
<!--@If Defined(@DwSearchResultPages)-->
Let's output this tag here: <strong><!--@DwSearchResultPages--></strong>
<!--@EndIf(@DwSearchResultPages)-->