Quote:
Originally posted by Bill
I'm trying to figure out how to get the home.html template to print to my main page rather than to the index.html of my domain. It's beginning to look like the only way to do this is to create a home_2.html template and define a the main page name as a second index in the build_index setting in links.cfg. Then it builds both the home.html and the home_2.html, and names the second my main page name.
|
Hi Bill,
Try this:
Open
links.cfg and find:
# Build Options
# --------------------------------------------------------
# Setting for popular cutoff, can either be a percent (i.e. top 3%), or
# a fixed value (i.e. top 10). Enter 0.03 or 10 respectively.
$db_popular_cutoff = 20; # Top 20
# Number of days a link is considered New.
$db_new_cutoff = 14; # 14 days old.
# Return search results bolded (1 = yes, 0 = no).
$search_bold = 1;
# The name of an index file.
$build_index = "index.html";
# The extension to use for non index files:
$build_extension = ".html";
Change it to:
# Build Options
# --------------------------------------------------------
# Setting for popular cutoff, can either be a percent (i.e. top 3%), or
# a fixed value (i.e. top 10). Enter 0.03 or 10 respectively.
$db_popular_cutoff = 20; # Top 20
# Number of days a link is considered New.
$db_new_cutoff = 14; # 14 days old.
# Return search results bolded (1 = yes, 0 = no).
$search_bold = 1;
# The name of the home page.
$build_home_index = "index_2.html";
# The name of an index file.
$build_index = "index.html";
# The extension to use for non index files:
$build_extension = ".html";
Then open
nph-build.cgi
go to the sub "build_home_page" and find:
open (HOME, ">$build_root_path/$build_index") or &cgierr ("unable to open home page: $build_root_path/$build_index. Reason: $!");
Change it to:
open (HOME, ">$build_root_path/$build_
home_index") or &cgierr ("unable to open home page: $build_root_path/$build_home_index. Reason: $!");
Then find:
print "\tOpening page: $build_root_path/$build_index\n";
Change it to:
print "\tOpening page: $build_root_path/$build_
home_index\n";
And finally in the sub "build_all" find:
print qq|Building <A HREF="$build_root_url/$build_index">Home Pages</A> . . .\n| :
And change it to:
print qq|Building <A HREF="$build_root_url/$build_
home_index">Home Pages</A> . . .\n| :
Hopefully that should do what you are looking for
I'll get a list together of the mods I have done/assembled and let you know
Mark