Must show pagination on live site eg after 5 category
Pagination not working
Joomla 3.6.5 stable
PHP 7.0.10
I see in categoryes model or in categoryes controller no pagination code implemented, or in view there is no any pagination code.
Labels |
Added:
?
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-03-11 06:47:19 |
Closed_By | ⇒ | gocha-gochitashvili |
I fixed by using: new JPagination();
Here are what I did:
`<?php
/**
JHtml::_('bootstrap.tooltip');
$lang = JFactory::getLanguage();
$limit = 10;
if (count($this->items[$this->parent->id]) > 0 && $this->maxLevelcat != 0) :
$start = 0;
if(isset($_GET['start'])&&$_GET['start']){
$start = $_GET['start'];
}
foreach($this->items[$this->parent->id] as $id => $item) : ?>
<?php
if($start == 0){
if($id >= $numberItem){
continue;
}
}else{
if($id < ($start)|| $id >= ($start+$limit)){
continue;
}
}
// HTML FOR EACH ITEM HERE
endforeach;
$pagination = new JPagination(count($this->items[$this->parent->id]), $start, $limit);
echo $pagination->getPagesLinks();
endif;
?>
`
@huynhkhanhduc can you make a PR for this Issue?
This was just a hard fixed.
Here are the steps:
@huynhkhanhduc this is a closed Issue, please write on at #14393
Ok, Got it
@franz-wohlkoenig you can see my comment here: #14393
known Issue #14393