Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Links not showing up in sub-categories

Quote Reply
Links not showing up in sub-categories
I am having trouble with categories and sub-categories, with the sub-categories not showing up if the main category does not have any links in it.

Links

Links/Swimming_Pools

Links/Swimming_Pools/Canada

Links/Swimming_Pools/United_States

Links/Swimming_Pools/Great_Britain

On the Links page it correctly show the subcategory of Swimming pools http://www.gardenbuildings.com/directory/Links/

On the Links/Swimming_Pools http://www.gardenbuildings.com/...inks/Swimming_Pools/it does not show the sub - sub-categories of Canada, United_States, Great_Britain etc unless I put at least one link just in Links/Swimming_Pools which, ideally, I do not want to do. I want this page just to be an index to the sub-categories of Canada etc.

Can anyone help?
Quote Reply
Re: [robinantill] Links not showing up in sub-categories In reply to
have you editted the code below from the sub build_category_pages { in NPH_build.cgi script

# Store all the category html info in $category.
if ($#{$subcategories{$cat}} >= 0) {
$category = &site_html_print_cat (@{$subcategories{$cat}});
}
else {
$category = "";
}
Quote Reply
Re: [stu2000] Links not showing up in sub-categories In reply to
Hi,

Yes, the code has been edited to

# Store all the category html info in $category.
if ($#{$subcategories{$cat}} >= 0) {
$category = &site_html_print_cat (@{$subcategories{$cat}});
}
else {
$category = "";
}

Any other ideas, thanks in advance.