Page 1 of 1

Change the number of most downloaded files.

Posted: 23 Mar 2017, 10:24
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?

Re: Change the number of most downloaded files.

Posted: 23 Mar 2017, 15:14
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.

Re: Change the number of most downloaded files.

Posted: 23 Mar 2017, 18:49
by cooldanek
Thank you for so fast reply and help :)

Re: Change the number of most downloaded files.

Posted: 27 Mar 2017, 18:40
by Jan
Ok