You could -
1. If you don't need the main Links start page, simpley edit you home.html template to only contain <%category%>. Then call /pages/index.html with SSI from your startpage.
2. If you want to build a special page with only the categories and nothing else, you will need to do a rather extensive, but not very difficult modification, going something like this:
In links.cfg
# The name of an index file.
$build_index = "index.html";
$build_catsonly = "catsonly.html"; In site_html_templates.pl, add a new sub site_html_catsonly based on site_html_home, but load a new template, say catsonly.html, instead of home.html.
Create the catsonly.html template. This should only have <%category%> in it.
In nph-build.cgi add something like
# Create a page with only the categories..
print "Building the catsonly page. . .\n";
&build_catsonly_page;
print "Done.\n\n";
Add a new sub, something like
In Reply To:
sub build_catsonly_page {
# --------------------------------------------------------
my ($subcat, @rootcat);
local ($total);
# Check to see which categories are off of the root.
foreach $subcat (sort keys %category) {
if ($subcat =~ m,^([^/]*)$,) {
push (@rootcat, $subcat);
}
}
print "\tSubcategories: "; print $#rootcat+1; print "\n";
print "\tTotal Links: $grand_total\n";
print "\tOpening page: $build_root_path/$build_catsonly\n";
open (HOME, ">$build_root_path/$build_catsonly") or &cgierr ("unable to open home page: $build_root_path/$build_catsonly. Reason: $!");
$category = &site_html_print_cat (@rootcat) if ($#rootcat >= 0);
$total = $grand_total;
print HOME &site_html_catsonly;
close HOME;
print "\tClosing page.\n";
}
That should do it, I think.