Change the number of most downloaded files.
-
- Phoca Newbie
- Posts: 2
- Joined: 23 Mar 2017, 10:16
Change the number of most downloaded files.
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:
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Change the number of most downloaded files.
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
Change the 5 to your own number.
components\com_phocadownload\models\categories.php
Code: Select all
$most_viewed_docs_num = $params->get( 'most_viewed_docs_num', 5 );
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 2
- Joined: 23 Mar 2017, 10:16
Re: Change the number of most downloaded files.
Thank you for so fast reply and help :)
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Change the number of most downloaded files.
Ok
If you find Phoca extensions useful, please support the project