Does anyone know how to add "Category Description" ONLY in the category.html but not the "Category name"? cause I don't want the Category name be displayed on the category.html page. I've thinking for a few days, but can't be solved. Anyone can help??
Dec 8, 2002, 12:17 PM
Novice (11 posts)
Dec 8, 2002, 12:17 PM
Post #1 of 4
Views: 445
Does anyone know how to add "Category Description" ONLY in the category.html but not the "Category name"? cause I don't want the Category name be displayed on the category.html page. I've thinking for a few days, but can't be solved. Anyone can help??
Dec 8, 2002, 12:59 PM
Veteran (1309 posts)
Dec 8, 2002, 12:59 PM
Post #2 of 4
Views: 443
look in site_html_templates, in the sub site_html_print_cat, and find this bit:
$output .= qq|<dl><dt><strong><a class="link" href="$url">$category_name</a></strong> <small class="numlinks">($numlinks)</small> |;
$output .= qq|<small><sup class="new">new</sup></small>| if (&days_old($mod) < $db_new_cutoff);
$output .= qq|</dt>|;
$output .= qq|<dd><span class="descript">$description </span></dd>| if (!($description =~ /^[\s\n]*$/));
$output .= qq|</dl>|;
}
And change it to this:
$output .= qq|<span class="descript"><a href="$url">$description</a></span>| if (!($description =~ /^[\s\n]*$/));
}
That will print only the description, and make the whole description a link. You could change it to make an image a link, or whatever...
Leonard
The One True Church
(Links-based site using all-CSS, and many mods to the basic script.)
Code:
# Then we print out the name linked, new if it's new, and popular if its popular. $output .= qq|<dl><dt><strong><a class="link" href="$url">$category_name</a></strong> <small class="numlinks">($numlinks)</small> |;
$output .= qq|<small><sup class="new">new</sup></small>| if (&days_old($mod) < $db_new_cutoff);
$output .= qq|</dt>|;
$output .= qq|<dd><span class="descript">$description </span></dd>| if (!($description =~ /^[\s\n]*$/));
$output .= qq|</dl>|;
}
And change it to this:
Code:
# Then we print out the name linked, new if it's new, and popular if its popular. $output .= qq|<span class="descript"><a href="$url">$description</a></span>| if (!($description =~ /^[\s\n]*$/));
}
That will print only the description, and make the whole description a link. You could change it to make an image a link, or whatever...
Leonard
The One True Church
(Links-based site using all-CSS, and many mods to the basic script.)
Dec 8, 2002, 5:54 PM
Veteran (1309 posts)
Dec 8, 2002, 5:54 PM
Post #4 of 4
Views: 431
Put this after </span>:
Leonard
The One True Church
(Links-based site using all-CSS, and many mods to the basic script.)
Code:
<small class="numlinks">($numlinks)</small>Leonard
The One True Church
(Links-based site using all-CSS, and many mods to the basic script.)


