Change the number of most downloaded files.

Phoca Download - download manager
cooldanek
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 23 Mar 2017, 10:16

Change the number of most downloaded files.

Post by cooldanek »

Hi. Phoca Download shows a list of 5 most popular files. I would like to change this number to a larger one (10, 20). How to do it?

Tags:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Change the number of most downloaded files.

Post by Jan »

Hi, for this you need to customize the code or use Phoca Download File module: https://www.phoca.cz/phoca-download-file-module

components\com_phocadownload\models\categories.php

Code: Select all

$most_viewed_docs_num 	= $params->get( 'most_viewed_docs_num', 5 );
Change the 5 to your own number.
If you find Phoca extensions useful, please support the project
cooldanek
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 23 Mar 2017, 10:16

Re: Change the number of most downloaded files.

Post by cooldanek »

Thank you for so fast reply and help :)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Change the number of most downloaded files.

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply