You can exclude a category quite easily, actually. In nph-build.cgi, go to sub build_category_pages. Right after the following code:
Code:
# Go through each category and build the appropriate page.
CATEGORY: foreach $cat (sort keys %category) {
next CATEGORY if ($cat =~ /^\s*$/); # How'd that get in here? =)
next CATEGORY if ($build_single and ($build_single ne $cat));
add the following line, changing "category_to_exclude" to the name of the category to exclude:
Code:
next CATEGORY if ($cat =~ "category_to_exclude");
Now Links will not build the category page for that category. However, the category will still show up in the category list that is available when people try to add or modify a link.
If you wanted to eliminate it from displaying in the category list (which you indicate you do not want to, but others doing something similar might want to), go to sub build_category_information in nph-build.cgi and after the following code:
Code:
LINE: while (<DB> ) {
/^#/ and next LINE; # Skip comment Lines.
/^\s*$/ and next LINE; # Skip blank lines.
chomp;
@values = &split_decode ($_);
add the following:
Code:
next LINE if (@values[$db_main_category] =~ "category_to_exclude");
Be careful when creating the name of the category you want to exclude. If it is a substring of another category, you will end up excluding all the categories that contain that name; so it should be a unique name.
I hope this helps.
[This message has been edited by Bobsie (edited May 26, 1999).]