Sort Order for Keywords-Tags Sort Order for Keywords-Tags
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Sort Order for Keywords-Tags

Started by newx, January 25, 2011, 08:19:53 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

newx

Hey and sorry for my bunch of questions  ::)

I want to reverse the sort order of keyword-tagged archive pages.
I tagged every picture with a keyword - if i now klick that, the pictures show up from old to younger
Is there a way to reverse the order? I want the newest pictures to show first an older last.

Thx

NewX

Αndré

Please post a screenshot of the page where you want to change the sort order, as I currently don't know where you want to change it.


Αndré

So you want to reverse the order of the search results, am I right? A link to that page would help a lot.

Αndré


newx

right link - thought you want no link ;) so i did an screen as requestet :)

reverse the order of the search results - yes - newest styles should appear first.

Αndré

Quote from: newx on January 25, 2011, 09:05:33 PM
thought you want no link ;) so i did an screen as requestet :)
I initially thought it were something only the admin can access ;)


Quote from: newx on January 25, 2011, 09:05:33 PM
reverse the order of the search results - yes - newest styles should appear first.
Is it okay if it applies to all 'regular' search results or should it only apply to your special links on the right side?

newx

I think its ok for every search result - the user like to see actual hairstyles first i guess :)

Αndré

We have different possibilities. If you change the default search order in the config, the search results will be displayed the same way. I think that's not what you're looking for, as it affects the search order of your whole gallery. I think it's the same for the second option (adding the sort=dd parameter to the url), as it affects regular albums as well.

So I think the only option will be to edit a core file. Open include/search.inc.php, find
$sort_order = isset($sort_array[$sort_code]) ? $sort_array[$sort_code] : $sort_array[$CONFIG['default_sort_order']];
and replace with
$sort_order = 'pid DESC';

newx


Αndré

Marking accordingly. Please do that yourself in the future. Thanks.