Description Usage Arguments Details
Given search query, return how many pages of search results there are
1 | count_pages(htm_input)
|
htm_input |
xml node containing the original html content of the page |
- The "page" query parameter isn't used on the first page of hits – this means that page 2 of hits uses the query parameter ?page=1. So need to increment this number by 1. - Need to handle situation when there are no hits for a search. - Need to handle situation when there is only one page of hits for a search.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.