Gossamer Forum
Home : Products : Gossamer Links : Discussions :

How can I create the New page without the headers, footers etc?

Quote Reply
How can I create the New page without the headers, footers etc?
Maybe theres an easy way to do this, but I would like to pull the information that is contained on the New page that shows the new links in last n days with php or ssi on my main portal page so that I can have a small block on the page that just lists the date and how many items were added on that day.

I thought maybe creating another page, so I edited the exisiting new template and saved it as a different name but it doesnt seem to get built anywhere on the system when I do a build all.

I know how to pull the actual page using my own websites php portal system but I just need the days,and numbers like saturday, Jun 1, 2006 (9) with 9 being a linked just like it is in the existing whats new page.

Perhaps someone can instruct me on the best way of accomplishing this.

Thanks,

Last edited by:

kamidan: Sep 13, 2006, 11:32 AM
Quote Reply
Re: [kamidan] How can I create the New page without the headers, footers etc? In reply to
You can start some code like this:

Code:

#!/usr/bin/perl
#================================
use strict;
use lib '/path/to/cgi-bin/links/admin';
use Links qw/:objects/;
use Links::SiteHTML;
Links::init('/path/to/cgi-bin/links/admin');

local $SIG{__DIE__} = \&Links::fatal;

main();

sub main {
#---------------------------------------------------
#

}


and maybe use some database coding like this:

What's New: http://www.gossamer-threads.com/...orum.cgi?post=266912

Is Featued Mod: http://www.gossamer-threads.com/...orum.cgi?post=293496

Hope this helps get you started,

- Jonathan