Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

site_html_print_cat splitting columns wrong

Quote Reply
site_html_print_cat splitting columns wrong
I've been trying to get my categories to look the same between Links 2 and Links SQL. The spacing has been somewhat different, and I think I see why. Looking at the source code, I am getting this sort of a structure for category and subcategory columns:

<table>
<tr><td>
</td><td>
<td>column 1</td>
<td>column 2</td></tr>
</table>

I'm pretty sure the problem is arising in site_html_print_cat in HTML_Templates.pm at this line:

# We check to see if we are half way through, if so we stop this table cell
# and begin a new one (this lets us have category names in two columns).
($i and ($i % $breakpoint)) or ($output .= qq|</td><td valign="top">\n|);

As far as I can tell, that's where the extra column is being inserted, but I'm not quite sure why or how to change it to rectify this.

I have the following set in Links.pm:

# Number of columns to display a list of categories.
$LINKS{build_category_columns} = 2;

Am I missing something, or is there an error in the column calculation?

Thanks,
Dan
Subject Author Views Date
Thread site_html_print_cat splitting columns wrong Dan Kaplan 3023 Feb 24, 2000, 5:27 PM
Post Re: site_html_print_cat splitting columns wrong
klangan 2931 Feb 24, 2000, 6:32 PM
Post Re: site_html_print_cat splitting columns wrong
Dan Kaplan 2935 Feb 24, 2000, 7:18 PM
Post Re: site_html_print_cat splitting columns wrong
pugdog 2931 Nov 12, 2000, 5:39 PM