I believe this has been talked about before. Try searching the forum.
Actually thinking about it should be easy to do. To get the detailed pages built inside your category directories you could just go into nph-build.cgi and replace your build detailed page sub with this:
sub build_detailed_view {
# --------------------------------------------------------
# This routine build a single page for every link.
#
my (@values, $id, %rec, $count);
if ($build_detail_path =~ m,^$build_root_path/(.*)$,) {
&build_dir ($1);
}
print "\t";
open (DB, "<$db_file_name") or &cgierr("unable to open database: $db_file_name. Reason: $!");
LINE: while (<DB>) {
/^#/ and next LINE; # Skip comment Lines.
/^\s*$/ and next LINE; # Skip blank lines.
chomp;
@values = &split_decode ($_);
$id = $values[$db_key_pos];
%rec = &array_to_hash (0, @values);
$title_linked = &build_linked_title ("$rec{'Category'}/$rec{'Title'}");
open (DETAIL, ">$build_root_path/$rec{'Category'}/$id$build_extension") or &cgierr ("Unable to build detail page: $build_root_path/$rec{'Category'}/$id$build_extension. Reason: $!");
print DETAIL &site_html_detailed (%rec);
close DETAIL;
$use_html ?
print qq~<a href="$build_root_path/$rec{'Category'}/$id$build_extension" target="_blank">$id</a> ~ :
print qq~$id ~;
(++$count % 10) or print "\n\t";
}
close DB;
print "\n";
}
Then just alter the link to the detailed page in link.html.
Good Luck!
Glenn
Host Links
http://cgi-resource.co.uk/links