Shows only ID, but I need to show the "Most viewed images in

Phoca Gallery modules - modules for Phoca Gallery extension
areviklu
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 03 Jan 2011, 08:21

Shows only ID, but I need to show the "Most viewed images in

Post by areviklu »

Good afternoon, tell me please how to solve the problem: sorting pictures within a category, the «ID» and "ascending" in the module mod_phocagallery_image, gives the same result. Shows only ID, but I need to show the "Most viewed images in this category. How to fix?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Shows only ID, but I need to show the "Most viewed image

Post by Jan »

Hi, in the module, there is no option to select the most viewed images. The sql query in this module needs to be customized, so the ordering by hits will be set there.

Jan
If you find Phoca extensions useful, please support the project
areviklu
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 03 Jan 2011, 08:21

Re: Shows only ID, but I need to show the "Most viewed image

Post by areviklu »

Thank you Jan. In some of the queries we need to write the parameter «hits»?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Shows only ID, but I need to show the "Most viewed image

Post by Jan »

yes - order by hits.

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