Keyword

Probleme mit der Pagination/Seitennavigation

  • Dirk Eichenberg
  • Dirk Eichenberg's Avatar Topic Author
  • Offline
  • New Member
More
4 years 5 months ago #173658 by Dirk Eichenberg
Probleme mit der Pagination/Seitennavigation was created by Dirk Eichenberg
Hallo,

ich habe zwei Probleme mit der Pagination bzw. Seitennavigation.

Ich setzte K2 unter Joomla 3.9.13 ein, in der aktuellsten Version.

1. Sobald ich die Pagination in der Artikelübersicht auf Seite 4 anklicke ändert sich die Pagination wie im Anhang ersichtlich.
Ich habe also nicht mehr die Seiten 3 ,4, 5, 6, 7 sondern 3.5, 4.5, 5.5, 6.5, 7.5

2. Bin ich in einem Artikel, erscheint unter dem Artikel die Navigation zu "vorheriger Beitrag" und "nächster Beitrag". Hier ist aber beim Durchklicken oft die Reihenfolge der Artikel nicht mehr korrekt. In der Übersicht der Artikel ist die Reihenfolge, sortiert nach Veröffentlichung so wie sie sein soll.

Sind solche Probleme bekannt, bzw. gibt es Lösungen dafür?
Attachments:

Please Log in or Create an account to join the conversation.

More
4 years 5 months ago #173671 by JoomlaWorks
Replied by JoomlaWorks on topic Probleme mit der Pagination/Seitennavigation
The pagination issue may be related to a template override. Make sure your /html/pagination.php is up to date. Copy the one from "protostar" just in case.

As for the prev/next links, the SQL query has been optimized if I recall correctly and as such will fetch same category items by ID+ & ID-.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Dirk Eichenberg
  • Dirk Eichenberg's Avatar Topic Author
  • Offline
  • New Member
More
4 years 5 months ago #173677 by Dirk Eichenberg
Replied by Dirk Eichenberg on topic Probleme mit der Pagination/Seitennavigation
Thank you for the answer.

1. This is the different code in the override of the pagination.php
But I don't know what is responsible for the incorrect display of the pagination.

// Set the pagination iteration loop values.
$displayedPages = 5;
$this->pagesStart = $this->pagesCurrent - ($displayedPages / 2);

if ($this->pagesStart < 1)
{
$this->pagesStart = 1;
}

if ($this->pagesStart + $displayedPages > $this->pagesTotal)
{
$this->pagesStop = $this->pagesTotal;

if ($this->pagesTotal < $displayedPages)
{
$this->pagesStart = 1;
}
else
{
$this->pagesStart = $this->pagesTotal - $displayedPages + 1;
}
}
else
{
$this->pagesStop = $this->pagesStart + $displayedPages - 1;
}

Please Log in or Create an account to join the conversation.

  • Dirk Eichenberg
  • Dirk Eichenberg's Avatar Topic Author
  • Offline
  • New Member
More
4 years 5 months ago - 4 years 5 months ago #173678 by Dirk Eichenberg
Replied by Dirk Eichenberg on topic Probleme mit der Pagination/Seitennavigation

Fotis wrote:
As for the prev/next links, the SQL query has been optimized if I recall correctly and as such will fetch same category items by ID+ & ID-.


But the articles are all of the same category, and the IDs of the articles are in the correct chronological order.

I solved it, because of changing the ordering ID.
Last edit: 4 years 5 months ago by Dirk Eichenberg.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum