Page 1 of 1

no random thumbs in categories view?

Posted: 22 Aug 2008, 18:43
by Bouss_fr
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? :idea:

Thanks :)

Re: no random thumbs in categories view?

Posted: 22 Aug 2008, 21:28
by caro84g
it's 'simply' possible.

See this post:viewtopic.php?f=1&t=1148#p6583

Good luck!

Carolien

Re: no random thumbs in categories view?

Posted: 22 Aug 2008, 22:47
by Bouss_fr
yes!
thanks a lot :twisted:

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';
Yipee! 8)

Re: no random thumbs in categories view?

Posted: 23 Aug 2008, 19:08
by Jan
ok