Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [fabio] Links sorting

Quote Reply
Re: [fabio] Links sorting In reply to
Hi Fabio

What you need to do is:
Setup a new column in links >
Go to Admin - Database - and select Links - Properties - Add Column
Column Name > Priority
Column Type > Char
Not Null > No
Form Type > Select
Size > 1
Form Names > Yes
Form Values > Yes

Make sure you Resync the database after the new column is added.

This select option will automatically come up on your admin add link form but not the user admin form.

Go to admin and modify the links you want as priority by selecting "Yes"
Default should be blank.

Make up a new links template and call it something like link_priority.html, format this to how you want the priority link to be displayed.
Upload it to your local directory with the changed category template.

Then in your category template replace <%links%> with :
<%if Priority eq 'Yes'%>
<%include link_priority.html%>
<%else%>
<%include link.html%>
<%endif%>

Then go to Admin - Setup - Build Options and set the build_sort_order_category to Priority DESC,score etc.
Then the Priority links should come up first.
You can do the same for search etc with the same mod in the search results template.

And you should be good to go.

If you want several type priority listing set up form names to 1,2,3 and form values to Priority1, Priority2 etc.
You can then select the order in which to display the Priority links.

If you do a search on on this forum for Premium, Priority and IsPriority it will give you everything you need to know to fine tune it.


Regards

minesite
Subject Author Views Date
Thread; hot thread Links sorting fabio 5181 Mar 12, 2004, 3:38 AM
Thread; hot thread Re: [fabio] Links sorting
minesite 5057 Mar 12, 2004, 6:16 AM
Thread; hot thread Re: [minesite] Links sorting
fabio 5059 Mar 12, 2004, 6:45 AM
Thread; hot thread Re: [fabio] Links sorting
Payooo 5063 Mar 12, 2004, 7:00 AM
Thread; hot thread Re: [Payooo] Links sorting
fabio 5075 Mar 12, 2004, 7:04 AM
Post; hot thread Re: [fabio] Links sorting
Payooo 5073 Mar 12, 2004, 7:14 AM
Post; hot thread Re: [fabio] Links sorting
minesite 5040 Mar 12, 2004, 7:17 AM
Thread; hot thread Re: [fabio] Links sorting
minesite 5045 Mar 12, 2004, 7:20 AM
Thread; hot thread Re: [minesite] Links sorting
fabio 5045 Mar 12, 2004, 7:22 AM
Thread; hot thread Re: [fabio] Links sorting
minesite 5043 Mar 12, 2004, 7:35 AM
Thread; hot thread Re: [minesite] Links sorting
fabio 5033 Mar 12, 2004, 8:05 AM
Post; hot thread Re: [fabio] Links sorting
minesite 5026 Mar 12, 2004, 8:22 AM
Thread; hot thread Re: Setting up Priority Links
BabiesOnline 4881 Aug 4, 2004, 12:03 PM
Post; hot thread Re: [BabiesOnline] Setting up Priority Links
minesite 4860 Aug 4, 2004, 4:37 PM