Gossamer Forum
Home : Products : Gossamer Links : Discussions :

reversing the order of additions/modifications

Quote Reply
reversing the order of additions/modifications
Is there a way to reverse the order of the additions/modifications for validating in the Admin area so that the oldest ones are first?
Quote Reply
Re: [rayhne] reversing the order of additions/modifications In reply to
I have suggest this be added to Links, as I see it as a must if you have pages of new links to sort through on a regular basis. And personally, I don't approve every link in one go, so it makes sense to have the oldest ones show up on the first page. LIFO.

I don't know of a temporary solution though.
Quote Reply
Re: [rayhne] reversing the order of additions/modifications In reply to
To reverse the sort order of links awaiting validation you'll need to edit admin/Links/Tools.pm ... at sub validate_links - add DESC to the so field to tell it to sort DESCending:

# Get a list of links awaiting validation.
my $sth = $db->query_sth ( {
isValidated => 'No',
mh => $mh,
nh => $nh,
sb => 'Add_Date',
so => 'DESC'
});


All the best
Shaun
Quote Reply
Re: [qango] reversing the order of additions/modifications In reply to
It is already set at DESC but it's still the newest first.
Quote Reply
Re: [rayhne] reversing the order of additions/modifications In reply to
DESCending date means newest first.

ASCending date means oldest first.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] reversing the order of additions/modifications In reply to
Thank you. Smile I thought so but I tend to get them confused.
Quote Reply
Re: [rayhne] reversing the order of additions/modifications In reply to
Sorry about that, I got a bit mixed-up - I wasn't anywhere near my machine at the time and copied it from a different thread - whoooops Smile

I'm guessing you've got it sorting in the order you want now?

All the best
Shaun