Pagination works wrong on the category blog
Rate this topic: 1.00 out of 6 based on 1 vote(s)
- GK User
- Wed Sep 18, 2013 2:21 pm
- Reply with quote
- Report this post
Hi, I have issue with pagination on Joomla 2.5 Category Blog view (for 1 category).
First 6 pages are shown right and after that only way to go forward or back is click on "Previous" or "Next", and after that numbers don't exist... So it is really hard to navigate.
There is no SEF component using (only Joomla's default).
I believe that for help you will need link of website and administration panel account, it is not problem, but I would like first to know which moderator will help and I send all informations via PM (I can't post it public for everyone).
Thanks in advance
First 6 pages are shown right and after that only way to go forward or back is click on "Previous" or "Next", and after that numbers don't exist... So it is really hard to navigate.
There is no SEF component using (only Joomla's default).
I believe that for help you will need link of website and administration panel account, it is not problem, but I would like first to know which moderator will help and I send all informations via PM (I can't post it public for everyone).
Thanks in advance
-
- Senior Boarder
- GK User
- Thu Sep 19, 2013 4:31 pm
- Reply with quote
- Report this post
Hi,
Please send me the access details
Please send me the access details
-
- Administrator
- GK User
- Fri Sep 20, 2013 10:47 pm
- Reply with quote
- Report this post
dziudek wrote:Hi,
Please send me the access details
Sent via PM.
-
- Senior Boarder
- GK User
- Sat Sep 21, 2013 9:17 am
- Reply with quote
- Report this post
Regarding your question from the PM message - yes, I'll need a FTP access - I'll have to change the pagination.php file
-
- Administrator
- GK User
- Mon Sep 23, 2013 2:48 pm
- Reply with quote
- Report this post
dziudek wrote:Regarding your question from the PM message - yes, I'll need a FTP access - I'll have to change the pagination.php file
Ok, sure, sent via PM again
-
- Senior Boarder
- GK User
- Mon Sep 23, 2013 5:24 pm
- Reply with quote
- Report this post
Sorry but I cannot connect with your server.
Please open file html/pagination.php in the template directory and please change fragment:
to:
Please open file html/pagination.php in the template directory and please change fragment:
- Code: Select all
if(count($list['pages']) >= 5) {
$founded = false;
for($i = 1; $i <= count($list['pages']); $i++) {
if($list['pages'][$i]['active'] != 1) {
$founded = $i;
break;
}
}
for($i = 1; $i <= count($list['pages']); $i++) {
if($i == 1 && $founded > $i + 2) {
$html .= '<li><span>…</span></li>';
}
if($i == count($list['pages']) && $founded < $i - 2) {
$html .= '<li><span>…</span></li>';
}
if($i >= $founded - 2 && $i <= $founded + 2) {
$html .= '<li>'.$list['pages'][$i]['data'].'</li>';
}
}
} else {
for($i = 1; $i <= count($list['pages']); $i++) {
$html .= '<li>'.$list['pages'][$i]['data'].'</li>';
}
}
to:
- Code: Select all
for($i = 1; $i <= count($list['pages']); $i++) {
$html .= '<li>'.$list['pages'][$i]['data'].'</li>';
}
-
- Administrator
- GK User
- Wed Sep 25, 2013 1:49 pm
- Reply with quote
- Report this post
Now I've got first 10, but after 10 again I can use only Next to move (there is no "11", "12"...), I have 36 pages for now.
-
- Senior Boarder
- GK User
- Wed Sep 25, 2013 8:53 pm
- Reply with quote
- Report this post
I've redirected your problem to our developer - Bartłomiej Krztuk. Most probably he will solve the problem locally and will send you the fixed pagination.php file, because your FTP server works very slowly for us.
-
- Administrator
- GK User
- Thu Sep 26, 2013 11:57 am
- Reply with quote
- Report this post
Please contact with me via PM, I'll send you file for test.
-
- Platinum Boarder
- GK User
- Mon Sep 30, 2013 7:58 pm
- Reply with quote
- Report this post
dziudek wrote:I've redirected your problem to our developer - Bartłomiej Krztuk. Most probably he will solve the problem locally and will send you the fixed pagination.php file, because your FTP server works very slowly for us.
Thank you!
-
- Senior Boarder
- GK User
- Mon Sep 30, 2013 7:58 pm
- Reply with quote
- Report this post
bkrztuk wrote:Please contact with me via PM, I'll send you file for test.
I contacted you via PM, thanks
-
- Senior Boarder
- GK User
- Thu Oct 03, 2013 9:15 am
- Reply with quote
- Report this post
Did you get the file? All is working fine ?
-
- Platinum Boarder
12 posts
• Page 1 of 1