Section blog don't show all active articles - j 1.5.25
Posted: Tue Feb 07, 2012 3:25 am
The problem is that when you select section blog for menu item, than you cannot see all active articles.
For example the default Section blog in Example pages the total number of articles is 22 /echo $this->total/, but when listed you can see only 14.
The question is where are the other 8 items?
The answer - in components->com_content->sections->view->view.html.php /it is in j1.5.15/
Solution - in j1.5.25 add or replace line 107
original is
$pagination = new JPagination($total, $limitstart, $limit );
with
$pagination = new JPagination($total, $limitstart, $limit - $links);
SOLVED!!!
For example the default Section blog in Example pages the total number of articles is 22 /echo $this->total/, but when listed you can see only 14.
The question is where are the other 8 items?
The answer - in components->com_content->sections->view->view.html.php /it is in j1.5.15/
Solution - in j1.5.25 add or replace line 107
original is
$pagination = new JPagination($total, $limitstart, $limit );
with
$pagination = new JPagination($total, $limitstart, $limit - $links);
SOLVED!!!