jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => Topic started by: wolfspyryt on 17.01.2017 06:21:42

Title: Page Navigation
Post by: wolfspyryt on 17.01.2017 06:21:42
The page navigation displays "Start,  Previous, 1-10, Next,  End."
I want to limit to 1-5 and leave other nav buttons.
How do I change page navigation to 1-5?
Title: Re: Page Navigation
Post by: ColinM on 17.01.2017 23:33:25
Hi
Not sure this is the answer you want but jD determines the tatal number of eligible downloadable files for the user and then computes the number of pages using the config parameter 'Number of entries per Downloads page:'.
I think you may be asking hoe can I set the limit to a maximum of 5 pages.  To implement would mean another config parameter and various code changes.

Colin
Title: Re: Page Navigation
Post by: wolfspyryt on 18.01.2017 00:28:25
See attached photo.....
I want        1 2 3 4 5
Not             1 2 3 4 5 6 7 8 9 10

How do I limit the page navigation to show ONLY 5 page numbers and the standard...  Start,  End,  Previous, Next?

[gelöscht durch Administrator]
Title: Re: Page Navigation
Post by: ColinM on 18.01.2017 17:55:37
Hi
There are no user settable config to set the number of pages in the list.  The list is created using Javascript which I believe is in pagination.js
Colin
Title: Re: Page Navigation
Post by: wolfspyryt on 19.01.2017 19:57:15
Hi Collin, Thank you for the assistance. Unfortunately, modding the js file was unsuccessful. I changed all "10" to "5". Can you offer any other assistance please?
Title: Re: Page Navigation
Post by: Arno on 20.01.2017 11:45:27
jDownloads used the getPagination method from the Joomla core source code (see /libraries/legacy/model/list.php).
Called like this in many view.html.php files:
        $this->pagination   = $this->get('Pagination');

When you will change this you could add an own getPagination part in the assigned jD model class. So you can override the Joomla method. But possible that you need more to change the output. So you could use Google to find more informations. I think you are not the only one the want to change it.

Edit:
Look also in this folder: /layouts/joomla/pagination/  ;)