?
avatar mattiaverga
mattiaverga
24 Jul 2016

Steps to reproduce the issue

After the update to Joomla 3.6 pagination of category blog view is broken.
For example, this page http://www.techfromthenet.it/Focus/ didn't show any pagination with Joomla 3.5, now it shows many duplicates of the same article, but in backend there aren't any duplicates.

System information (as much as possible)

See attached file

avatar mattiaverga mattiaverga - open - 24 Jul 2016
avatar mattiaverga
mattiaverga - comment - 24 Jul 2016
avatar bertmert
bertmert - comment - 24 Jul 2016

I don't think that this is a Joomla issue. Have a look at your pagination links:
<a class="pagenav" href="/Focus/Page-2.html" title="2">2</a>
against Joomla (SEF + Adds Suffix to URL) :
<a class="pagenav" href="/article-category-blog.html?start=10" title="3">3</a>
See
....html?start=10

So I think that's a wrong template override or something.

avatar mattiaverga
mattiaverga - comment - 24 Jul 2016

I thought about that.
I set up two local copies of the site, one with a backup before the update (joomla 3.5.0) and one with the actual site (joomla 3.6.0). I've set the default Beez3 template on both. As you can see in screenshots, the old Joomla 3.5 doesn't have pagination, the new one has it.
The category only has 7 articles (they were 6 in the old backup) and category blog is set to display 2 main articles + 14 links, so in both cases it should not doing pagination.
j3 5
j3 6

avatar mattiaverga
mattiaverga - comment - 24 Jul 2016

I did some more testing: using a clean Joomla 3.6 installation, it seems that the pagination plugin doesn't take into account the number of links set on the page.
For example, if I set to display 2 main articles + 2 Intro articles + 2 links, the second page link has "?start=4" instead of "?start=6". If I change the number of main articles or intro articles, the link is changed properly, but if I change the number of links the "?start" parameter doesn't change.

avatar brianteeman
brianteeman - comment - 24 Jul 2016

The number of links has never been taken into account. That is not
something new and can be seen right back to Joomla 1.0

avatar jeckodevelopment
jeckodevelopment - comment - 24 Jul 2016

@brianteeman i guess he would say that the "number of links has been ignored" ("take into account" is a wrong translation).

@mattiaverga can you please explain where is the issue?

avatar mattiaverga
mattiaverga - comment - 24 Jul 2016

@jeckodevelopment if you look in my comment#4 with Joomla 3.5.0 pagination is not showed. With Joomla 3.6.0 pagination is showed.
That page is set to display 2 main articles + 14 links. In that category I have only 9 articles (they were 8 in the backup taken with Joomla 3.5).

So with Joomla 3.5 I got only one page with 2 main articles + 6 links.
With Joomla 3.6 I now have the first page with 2 main + 7 links, a second page with "?limitstart=2" with 2 main (which were the first two links in the first page) + 5 links, and so on...

This happens also with the default Joomla template.
If number of links are intentionally not considered when building pagination, can someone point me to the code where I can modify this behavior?

avatar jeckodevelopment
jeckodevelopment - comment - 24 Jul 2016

Did you change anything into the default Joomla! template? Overrides?

avatar mattiaverga
mattiaverga - comment - 24 Jul 2016

Ok, I'm sorry, I see now that the different behavior was totally my error: in the backup with Joomla 3.5 pagination was NOT enabled... sorry again!

However I would like to customize that and make the limitstart parameter count also links... where should I look for that?

avatar jeckodevelopment
jeckodevelopment - comment - 24 Jul 2016

I guess that this is not the right place to discuss this :)
Maybe you can open a dedicated topic on the foum.
I close this issue, re-open if needed.

avatar jeckodevelopment jeckodevelopment - change - 24 Jul 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-07-24 14:56:57
Closed_By jeckodevelopment
avatar jeckodevelopment jeckodevelopment - close - 24 Jul 2016
avatar brianteeman
brianteeman - comment - 24 Jul 2016

You can't. The code does not support that.

On 24 Jul 2016 3:55 p.m., "Mattia Verga" notifications@github.com wrote:

Ok, I'm sorry, I see now that the different behavior was totally my error:
in the backup with Joomla 3.5 pagination was NOT enabled... sorry again!

However I would like to customize that and make the limitstart parameter
count also links... where should I look for that?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#11284 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPH8bncyPG1cst-KEkCnBQ5Nwq5fw9Gks5qY3zhgaJpZM4JTiHy
.

Add a Comment

Login with GitHub to post a comment