?
avatar Paladin
Paladin
9 Nov 2017

Steps to reproduce the issue

In a website with multiple articles in a given category:

  1. Create a new menu item for category blog view of that category.
  2. On the Blog Layout tab, adjust the numbers of leading and intro articles so the total is less than the total articles in category (if 5 articles in category, e.g., use 1 leading and 2 intro articles).
  3. Set the number of links to any number greater than 1 (try 5 in the above example).
  4. View page.
  5. click pagination to go to next page.

Expected result

The articles on the next page begin with the next article after the last linked article.

Actual result

The articles on the next page begin with the first linked article. IOW, articles linked to on page 1 appear at the top of page 2.

System information (as much as possible)

Joomla 3.8.1

Additional comments

It's a User Confusion bug. I ran into it when deciding to override the formatting of the links list (turning it into a grid, if it matters, with a thumbnail of the article image as part of the grid). I had 7 articles, so set the Lead to 1, the Intro to 1, and the Links to 6 to test the new display. And I saw pagination for multiple pages, when every article in the category was already listed on the screen in front of me?!?! I checked and they were repeating articles that had already been presented to the user on a previous page. I don't think that would be the behavior of this layout expected by most users. It certainly wasn't what I expected. When I click "Next page" I expect to see more articles, not a repetition of arcticles I've already decided I didn't want to read (or worse, just finished reading). It appears the number of links that will be shown the user isn't taken into account by the code that calculates number of items per page.

avatar Paladin Paladin - open - 9 Nov 2017
avatar joomla-cms-bot joomla-cms-bot - change - 9 Nov 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 9 Nov 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 9 Nov 2017
Category com_categories
avatar brianteeman
brianteeman - comment - 9 Nov 2017

This annoys me as well but it is the expected behaviour and in tests with my clients they all seem to expect the current behaviour

avatar franz-wohlkoenig franz-wohlkoenig - change - 10 Nov 2017
Status New Discussion
avatar brianteeman
brianteeman - comment - 18 Nov 2017

I am going to close this for the reasons stated above AND because it has worked this way since the very beginning

avatar brianteeman brianteeman - change - 18 Nov 2017
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2017-11-18 17:38:34
Closed_By brianteeman
avatar brianteeman brianteeman - close - 18 Nov 2017
avatar Paladin
Paladin - comment - 20 Nov 2017

TBH, I kind of expected a "Won't fix" response on this, Brian (though I dared hope for something better). Congratulations on your clients; the reaction here when I explained that this was the way it was designed to work was "Well, can't you fix it?" and they weren't especially happy with "Not without patching core" as a response. I would expect that reaction from anyone who hadn't seen/worked with a Joomla site before; Like I said, I envy you not having run into that before.

I definitely agree with continuing to maintain this as default behavior, for B/C reasons, but the way it's hard-coded into ListModel doesn't seem to leave a convenient way of overriding that behavior even with a plugin -- pretty much end up moving a good chunk of the view.html.php code into the template override. I continue to see that as a defect, but I understand closing this.

avatar brianteeman
brianteeman - comment - 20 Nov 2017

As I said I also see it as a defect which is why I always set the number of links to zero

Add a Comment

Login with GitHub to post a comment