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
<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