Ok Here is what I have (I started from the basics...The resource center templates):
sub site_html_print_cat {
# --------------------------------------------------------
# This routine determines how the list of categories will look.
# We now use a table to split the category name up into two columns.
# For each category you can use the following variables:
#
# $url : The URL to go to that category
# $category_name : The category name with _ and / removed.
# $category_descriptions{$subcat}: The category description (if any).
# $numlinks : The number of links inside that category (and subcategories).
# $mod : The newest link inside of that category.
#
my (@subcat) = @_;
my ($url, $numlinks, $mod, $subcat, $category_name, $description, $output, $i);
my ($half) = int (($#subcat+2) / 2);
foreach $subcat (sort @subcat) {
($description) = @{$category{$subcat}}[2];
# First let's get the name, number of links, and last modified date...
$url = "$build_root_url/" . &urlencode($subcat) . "/";
if ($subcat =~ m,.*/([^/]+)$,) { $category_name = &build_clean($1); } else { $category_name = &build_clean($subcat); }
$numlinks = $stats{"$subcat"}[0];
$mod = $stats{"$subcat"}[1];
# Then we print out the name linked, new if it's new, and popular if its popular.
$output .= qq|<tr><td><font face="Verdana, Helevtica, Arial" size=2><dl><dt><strong><a href="$url">$category_name</a></strong> <small>(There are $numlinks in this category)</small> |;
my $days_old = &days_old($mod);
if ($days_old <= 2) { $output .= qq| $new_1|; }
elsif ($days_old <= 7) { $output .= qq| $new_3|; }
elsif ($days_old <= 14) { $output .= qq| $new_7|; }
$output .= qq|</dt>|;
$output .= qq|<dd><span></font><font face="Verdana, Helevtica, Arial" size=1>$description </span></dd>| if (!($description =~ /^[\s\n]*$/));
$output .= qq|</dl></font></td></tr>|;
}
return $output;
}
and my home.html reads:
<div align="center"><center>
<table border="0" width="95%" cellspacing="0" cellpadding="0">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#CCCCCC"><font face="Verdana, Helvetica" size="4"><b>Categories</b></font></td>
</tr>
<tr>
<td bgcolor="#F7F7F7"><font face="Verdana, Helvetica, Arial" size="2"><%category%> </font></td>
</tr>
</table>
</td>
</tr>
</table>
</center></div>
and my category.html reads:
<%if category%>
<div align="center"><center>
<table border="0" width="95%" cellspacing="0" cellpadding="0">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#CCCCCC"><font face="Verdana, Helvetica" size="3"><b>Categories in <%category_clean%></b></font></td>
</tr>
<tr>
<td bgcolor="#F7F7F7"><font face="Verdana, Helvetica, Arial" size="2"><%category%> </font></td>
</tr>
</table>
</td>
</tr>
</table>
</center></div><%endif%>
I am trying to get two columns out of this on my main page (home.html).
Hopefully I have included enough info here.
Aaron
------------------
www.serve.com/garden/geosearcher