Hello,
I want to be able to exclude certain categories from showing up when I use $category on my pages. However, I still want the page for that category to be built when I build my pages. I tried in nph-build.cgi in sub build_category_pages doing
unless (@{$subcategories{$cat}}[2] =~ /hide/) {
if ($#{$subcategories{$cat}} >= 0) {
$category = &site_html_print_cat (@{$subcategories{$cat}});
}
}
else {
$category = "";
}
This is not working, but if anyone can see what I am trying to do with this code can they please help.
Thanks,
Jon
I want to be able to exclude certain categories from showing up when I use $category on my pages. However, I still want the page for that category to be built when I build my pages. I tried in nph-build.cgi in sub build_category_pages doing
Code:
# Store all the category html info in $category. unless (@{$subcategories{$cat}}[2] =~ /hide/) {
if ($#{$subcategories{$cat}} >= 0) {
$category = &site_html_print_cat (@{$subcategories{$cat}});
}
}
else {
$category = "";
}
This is not working, but if anyone can see what I am trying to do with this code can they please help.
Thanks,
Jon