Hi,
When I go into the Phocadownloads page on my site (Front end), I see my 4 files that I've uploaded. So eg:
Publications (4)
Some of my publications are just text entries with no download. How would I approach/modify so that the counter will count the text entries as well?
Thanks everyone so much for help!
Phoca Download Counter
- Jan
- Phoca Hero
- Posts: 48739
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Download Counter
Hi, this needs to be customized in model (so it will load count from all files not only from "not" text files)
see e.g. sections model:
components\com_phocadownload\models\sections.php
e.g. line 105:
FROM: . " LEFT JOIN #__phocadownload AS c ON c.catid = cc.id AND c.published = 1 AND c.textonly = 0"
TO: . " LEFT JOIN #__phocadownload AS c ON c.catid = cc.id AND c.published = 1"
Jan
see e.g. sections model:
components\com_phocadownload\models\sections.php
e.g. line 105:
FROM: . " LEFT JOIN #__phocadownload AS c ON c.catid = cc.id AND c.published = 1 AND c.textonly = 0"
TO: . " LEFT JOIN #__phocadownload AS c ON c.catid = cc.id AND c.published = 1"
Jan
If you find Phoca extensions useful, please support the project