I’m setting up custom templates for my EE 2.2.1 website and I’m trying to customize the wiki search results page. I need to hide the search results pagination if there is only 1 page after a search is done. I’m trying to do something like this:
{wiki:search_results limit="20"}
....
{if total_pages > 1}
{paginate}
<div>Page {current_page} of {total_pages} pages {pagination_links}</div>
{/paginate}
{/if}
{/wiki:search_results}The if statement above doesn’t seem to be working. This always displays the pagination info on the page. Is there any way to only show this when I have more than 1 page of results or is this a bug/limitation? Any help is appreciated.
Thank you,
Mike