Scandal
Well-known member
Well, we have the well known finder:
Finder includes methods to separate results into pages for the
My question: AFTER
The basic thing is to not break the display on the results on the
So these
How could I normalize the show of the threads and the pagenav after those
For example, if
Got it?
Any idea? 
$this->finder('XF:Thread').Finder includes methods to separate results into pages for the
<xf:pagenav>, like:
PHP:
$total = $finder->total();
$threads = $finder->limitByPage($page, $perPage)->fetch();
My question: AFTER
$finder->fetch(); I need to unset some "rows" based on some checks which cannot be applied on the $finder query / where.The basic thing is to not break the display on the results on the
$threads and on <xf:pagenav>.So these
unset's will decrease the $total and will make some rows to not display when I use the <xf:foreach loop="$threads" value="$thread"> on a template for some pages.How could I normalize the show of the threads and the pagenav after those
unset's ?For example, if
$perpage = 5;, every page should show 5 $threads in any case. Not 4 or 3 in case we had unset them.Got it?