How do I tell the mylinks.cgi script to create a second myhome.html file which has a different template (mylinks.html file)so that I can call it to my home page through SSI, like Yahoo bookmark.
Thanks
Will
PS
Here is the long winded question:
For example, at the moment 'mylinks' creates one home html file (using the my_links.html as the template), which has all the links, that have been added by the user.
What I want to do, is create another html file only containing the titles of the links (changing the tewmplate format), so that I can call that file with the users links on to my homepage through SSI, and the have a button, when clicked would open the original created myhome.html.
Basically a simple version of the 'Yahoo personal homepage' bookmark section.
So what I am trying to get to is, how do I tell the script to produce another template but a different layout (having another mylink.html - which contains the layout)?
I think the change would be in this region (but I am not a perl reader)
# Builds the links.
foreach (@c[$start .. ($start + $per_page - 1)]) {
last if ($_ eq "");
$OUT{'links'} .= &site_html_my_link (&get_record (&decode ($_)));
}
}
# Builds the MyLinks page.
print $in->header();
&site_html_my_home ( { %OUT } );
Thanks
Will
PS
Here is the long winded question:
For example, at the moment 'mylinks' creates one home html file (using the my_links.html as the template), which has all the links, that have been added by the user.
What I want to do, is create another html file only containing the titles of the links (changing the tewmplate format), so that I can call that file with the users links on to my homepage through SSI, and the have a button, when clicked would open the original created myhome.html.
Basically a simple version of the 'Yahoo personal homepage' bookmark section.
So what I am trying to get to is, how do I tell the script to produce another template but a different layout (having another mylink.html - which contains the layout)?
I think the change would be in this region (but I am not a perl reader)
# Builds the links.
foreach (@c[$start .. ($start + $per_page - 1)]) {
last if ($_ eq "");
$OUT{'links'} .= &site_html_my_link (&get_record (&decode ($_)));
}
}
# Builds the MyLinks page.
print $in->header();
&site_html_my_home ( { %OUT } );