Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Priority listing?

Quote Reply
Priority listing?
Does anyone know how it is possible to give a priority weight to a listing so it can appear higher or lower in the results?

Cheers

Stubbers
Quote Reply
Re: Priority listing? In reply to
i'm not sure exactly what you want.. but you can create a field inside of the Links database and then sort it..

like..

Name: Priority
Type: INT
Length: 2
Max: 2
Not Null: Yes
Default: 0
Validation: ^\d+$

and just put whatever number in it Smile

ie: if it's low priority.. put 0.. if high.. put like 10..

you also have to add 'Priority DESC' as the first sort in Links.pm

(this is just a simple way of doing it)


------------------
Jerry Su
Links SQL Licensed
------------------