Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Possible Bug Making Categories

Quote Reply
Possible Bug Making Categories
Hi:

I noticed what might be a bug- or just might be my bad coding!

It seems that when a category has just two sub-categories (no more- no less!) The build routine drops the second "<dl>" statement.

Sample:

http://66.219.198.216/...rks%2Findex.html;d=1

Note how "Television" rides a little high?

Here is the code for that part of the page:

254: <dl style="width:295px;"><dt style="line-height:13px;"><a href="[snip]></a>
[/url]255: <span class="link_num">&nbsp;&nbsp;(22
[/url]256: Cartoons.)</span>
[/url]257: <br /><br /></dt></dl><dt style="line-height:13px[snip]span></a>
[/url]258: <span class="link_num">&nbsp;&nbsp;(10
[/url]259: Cartoons.)</span>
[/url]260: <br /><br /></dt></dl>[/url]

Code:


Note line 257 closes the <dl> statement, but it does notre-open it!

Here is a page with MORE than 2 Cats:

http://66.219.198.216/...isney_Studios%2F;d=1

262: <span class="link_cat">Featurettes</span></a>[/url]
263: <span class="link_num">&nbsp;&nbsp;(13
[/url] 264: Cartoons.)</span>
[/url] 265: <br /> [snip] <br /></dt></dl><dl style="width:295px[snip]s</span></a>
[/url] 266: <span class="link_num">&nbsp;&nbsp;(810
[/url] 267: Cartoons.)</span>[/url]

Code:



Note here, on line 265, the DL closes and opens again.
dave

Big Cartoon DataBase
Big Comic Book DataBase

Last edited by:

carfac: Apr 10, 2005, 10:37 AM
Quote Reply
Re: [carfac] Possible Bug Making Categories In reply to
That was a bug in the beta/rc templates. If you diff your templates to the 3.0.0 final templates, you should see the fix. The change needs to be made in home.html as well as category.html. The fix was to change:
Code:
<%~if row_num == 1 or splitmod == 1%><dl><%endif%>
to
Code:
<%~if row_num == 1 or splitmod == 1 or split == 1%><dl><%endif%>

Adrian
Quote Reply
Re: [brewt] Possible Bug Making Categories In reply to
Thanks- that did it. Sorry- I was building based on 2.99.1 templates and I missed that one!
dave

Big Cartoon DataBase
Big Comic Book DataBase