Quick and Dirty File Count?

Phoca Download - download manager
tapiochre
Phoca Enthusiast
Phoca Enthusiast
Posts: 58
Joined: 15 Jul 2011, 15:02

Quick and Dirty File Count?

Post by tapiochre »

Hi there

Has anyone got an idea how I can simply extract the number of published files in a catagory?

I want to have a module that looks at a PDL Category ID, counts the number of published files in that Category and returns that as a number to show in the module.

The application is to let me show visitors the total number of downloable forms that are available for access without them having to drill down into the category list view!

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

Re: Quick and Dirty File Count?

Post by Jan »

Hi, just create new module and add the sql query with sum of the files stored in phocadownload table.

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