Coroico / AdvSearch

Dynamic content search add-on for MODx Revolution that supports results highlighting, faceted search and search in custom packages
21 stars 14 forks source link

No pagination controls if one page in pagingType 2 #34

Closed shaunmorrison closed 10 years ago

shaunmorrison commented 11 years ago

Hi, would it be possible to give the option to not show pagination controls on pagingType 2 if there is only one page of results. Currently pagination will tend to look strange if there is just the number '1' there.

Coroico commented 11 years ago

No so strange. If it exists only one page of results, it seems normal to display: Result pages: 1

Try to search "villarica" on this demo page as example : http://www.revo.wangba.fr/paging-types.html

shaunmorrison commented 11 years ago

If you want consistency across your site with pagination and you are using getPage – this does not show pagination when there is only one page. It's a pretty nice option to have.