Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [Scampi] Featured Link / Link Highlighting

Quote Reply
Re: [Scampi] Featured Link / Link Highlighting In reply to
Hi, Scampi;

You do not need a plugin!

You can do this by adding in a column called (for example) "featured_link" to the Links database.

On the Admin menu, click/select
->Database
->Links/Properties, click "Go"
->click "Add Column"

Column Name: Featured_Link
Column Type: Text
Form Display: Featured Link
Form Type: Text
Form Size: 2

click "Add Field to Links"


You could make this "Yes" and "No", or 1 and 0.

Then, in the link.html template, you set it to look for the "featured_link flag.
If the flag is there, you put the link in with a box/table with a background color.
Other wise, not!

link.html

<%if featured_link%>
<!-- put the link in a shaded table -->
your featured code goes here

<else>
<!-- non featured link code goes below -->
your non-featured code goes here

<endif>


Then just put 1 or 0 in to make/not make the link featured.

Advanced...
You may have to put in
<%if featured_link = 'Yes'%>
if you use "Yes"/"No", which are Enumerated Types.
Subject Author Views Date
Thread Featured Link / Link Highlighting Scampi 2986 Jun 26, 2003, 5:47 AM
Thread Re: [Scampi] Featured Link / Link Highlighting
webslicer 2929 Jun 26, 2003, 7:55 AM
Thread Re: [webslicer] Featured Link / Link Highlighting
Andy 2925 Jun 26, 2003, 7:59 AM
Post Re: [Andy] Featured Link / Link Highlighting
webslicer 2921 Jun 26, 2003, 9:43 AM
Thread Re: [Scampi] Featured Link / Link Highlighting
transom 2912 Jun 26, 2003, 11:20 AM
Thread Re: [transom] Featured Link / Link Highlighting
webslicer 2913 Jun 26, 2003, 6:00 PM
Thread Re: [webslicer] Featured Link / Link Highlighting
transom 2915 Jun 26, 2003, 6:47 PM
Post Re: [transom] Featured Link / Link Highlighting
Scampi 2899 Jun 27, 2003, 2:10 AM