solved Changing search pagination

Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
In the following search:

http://www.thechocolatelife.com/search/results/all/1/4?search_string=foil

Results are returned in multiple categories. As can be seen in the URL, the number of displayed results in each category is 4.

I want to change this to a number > 4. In which template does this variable reside? Furthermore, does changing this variable affect the click-through pages

e.g., Image Galleries Search These Results (##)

TIA
:: Clay
updated by @claygordon: 03/01/15 08:17:40PM
paul
@paul
9 years ago
4,326 posts
The default value is 4
You can override this by adding a pagebreak parameter to the search form call in Ningja header_menu_desktop.tpl line 167 -

{jrSearch_form class="form_text" value="Search Site" style="width:70%" pagebreak=10}

or whatever you want it to be.


--
Paul Asher - JR Developer and System Import Specialist
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
Paul -

I've made so many changes to header_menu_desktop.tpl that I doubt it's in line 167 any more! lol

But thanks, now what I know where it is I can find the text and add it in.
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
Paul -

Added the page break into the search form and reset the template caches (not running in developer mode).

Did not change the number of results displayed.

--- edited to add ---

However, adding discuss_description to search increased the number of results from 11 to 28 so changing the pagination is more important than ever.

--- edited to add ---

This was a latency issue somewhere (might have been local cache on " foil " as search term). Searching for other text gets 10 as the pagination length.
updated by @claygordon: 01/28/15 09:57:53AM
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
I don't know if this is related, but now the first result in Forum Topics is missing its title - here and on the next page.

I ran an integrity check on the db - repair tables - and that did not fix the problem. I did not accidentally delete the title (Bug Reports).

http://www.thechocolatelife.com/clay/forum/faqs-on-using-the-new-site
updated by @claygordon: 01/28/15 09:45:05AM
paul
@paul
9 years ago
4,326 posts
Just going to log into your site and have a play with things.


--
Paul Asher - JR Developer and System Import Specialist
paul
@paul
9 years ago
4,326 posts
Quote: Added the page break into the search form and reset the template caches (not running in developer mode).
Have checked and see you have pagebreak=10 where I suggested, tried searching for 'foil' and it is showing 10 results (where there are 10 results).

Forum search results with no title are comments on a forum. Those with a title are the original post.


--
Paul Asher - JR Developer and System Import Specialist
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
Paul -

Yeah. I edited one of my comments. It was a latency thing. I did the cache reset but it wasn't until I also cleared the browser cache that it started working.

Thanks for checking in on this.

:: Clay

Tags