Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Displaying New Links on Home page

Quote Reply
Displaying New Links on Home page
Could someone please guide me in the right direction to setup the main page of Links SQL to display part of the What's New page as well as the regular Home page information.

Thanks

Quote Reply
Re: Displaying New Links on Home page In reply to
Create a global tag called lastlink

Use the following SQL codes:

Code:

SELECT *
FROM Links
WHERE isNew = 'Yes'
LIMIT 5


For information on creating globals, search this forum for global tags.

Regards,

Eliot Lee
Quote Reply
Re: Displaying New Links on Home page In reply to
That makes sense just a regular SQL Query but then how do I display the actual data. When I added the global with the select statement and the call to it from the home page all I got was a copy of the code on my home page.

Quote Reply
Re: Displaying New Links on Home page In reply to
If you want to use the date, you should reference a different template file for the lastlink global tag...like lastlink.html (&site_html_lastlink)....

Then in the lastlink.html....

use <%Date%> as one of the tags....

Regards,

Eliot Lee