Shows only ID, but I need to show the "Most viewed images in
-
- Phoca Newbie
- Posts: 2
- Joined: 03 Jan 2011, 08:21
Shows only ID, but I need to show the "Most viewed images in
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?
- Jan
- 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
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
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 2
- Joined: 03 Jan 2011, 08:21
Re: Shows only ID, but I need to show the "Most viewed image
Thank you Jan. In some of the queries we need to write the parameter «hits»?
- Jan
- 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
yes - order by hits.
Jan
Jan
If you find Phoca extensions useful, please support the project