Hi there!
I wish to display always the same thumbnail (the first pic) for a category in categories view.
In other words I don't want to have a random display of thumbnails from the category.
Is that "simply" possible or which file must I modify?
Thanks
no random thumbs in categories view?
- Bouss_fr
- Phoca Member
- Posts: 11
- Joined: 23 Feb 2008, 00:17
- Location: France
- Contact:
- caro84g
- Phoca Hero
- Posts: 1369
- Joined: 11 Feb 2008, 17:52
- Location: Holland
- Contact:
Re: no random thumbs in categories view?
Please ask your support questions in the forums and not via PM - I delete those PM's
Backup before you do any major change to your website (and test first)
Backup before you do any major change to your website (and test first)
- Bouss_fr
- Phoca Member
- Posts: 11
- Joined: 23 Feb 2008, 00:17
- Location: France
- Contact:
Re: no random thumbs in categories view?
yes!
thanks a lot
to be acurate, the tip was originaly given for "subcategory thumbnail"
For "first level" categories, the lines (rows) to check are:
Yipee!
thanks a lot
to be acurate, the tip was originaly given for "subcategory thumbnail"
For "first level" categories, the lines (rows) to check are:
Code: Select all
CATEGORY VIEW:
[OPEN] components\com_phocagallery\models\category.php
row 438
[FIND]: ' ORDER BY RAND()';
[REPLACE TO]: ' ORDER BY ordering';
CATEGORIES VIEW:
[OPEN] components\com_phocagallery\models\categories.php
row 166
[FIND] ' ORDER BY RAND()';
[REPLACE TO] ' ORDER BY ordering';
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: no random thumbs in categories view?
ok
If you find Phoca extensions useful, please support the project